You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possibly hazardous check for static cmd argv validity #1943
assumes that if argv has not changed then there has been no reallocation during the execution of the command.
However, if there is more than one call to rewriteClientCommandVector within the execution of a command (I don't know if this ever occurs in practice, but it seems hazardous to assume that) then it is possible for the argv to be freed and then reallocated at the same address but with a different length. This would potentially cause memory to be overwritten if it is reallocated at a smaller length than the original.
Activity
paddybyers commentedon Aug 17, 2014
Actually that's bad because it defeats the current behaviour of a static argv that grows as needed, without shrinking.