CoherentStructures/CoherentStructures.jl

Feedback on Detected SUSPICIOUS-COMMENTS

zyue110026 opened this issue · 0 comments

Greetings,

We are some security researchers who have built a scanner to detect known security weaknesses. For your repository, we have found instances of SUSPICIOUS-COMMENTS in the following locations:

Location-1:

mutable struct GridContext{dim,G<:FEM.Grid,ITP<:FEM.Interpolation,ITPG<:FEM.Interpolation,DH<:FEM.DofHandler,QR<:FEM.QuadratureRule,PL<:PointLocator} <: AbstractGridContext{dim} #TODO: Currently set as mutable, is this sensible?

Location-2:
#TODO: Think about what values would be sensible for the two variables below

Location-3:
#TODO: replace this with a macro maybe

Location-4:
#TODO: replace this with a macro maybe

Location-5:
#TODO: Maybe make this more efficient by calling evaluate_function_from_node_or_cellvals_multiple

Location-6:
@assert what [0,-1,1] #TODO: get rid of this

Location-7:
#TODO: optimize this for speed

Location-8:
facesets = Dict{String,Set{Tuple{Int,Int}}}()#TODO:Does it make sense to add to this?

Location-9:
#boundary_matrix = spzeros(Bool, 3, m)#TODO:Maybe treat the boundary correctly?

Location-10:
#TODO: Fix below if this doesn't work

Location-11:
#facesets = Dict{String,Set{Tuple{Int,Int}}}()#TODO:Does it make sense to add to this?

Location-12:
#boundary_matrix = spzeros(Bool, 3, m)#TODO:Maybe treat the boundary correctly?

Location-13:
#TODO: Fix below if this doesn't work

Location-14:
#TODO: See if this can be moved upstream

Location-15:
#TODO add @inbounds once this works...

Location-16:
#TODO: Measure if the sorting below is expensive

Location-17:
# TODO: unclear what this function is good for... completely type unstable!

Please give us feedback. Do you think these are valid instances on security weaknesses? Will you fix them?