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
Apologies, it seems we completely missed this issue. I believe this should be solved by #16749, which should be part of the up coming 2.18.0 release of CodeQL.
Description of the false positive
CodeQL warns about potential double free, in situations where there's clearly no such situation. It seems to be related to the use of negative indices
Code samples or links to source code
Cf https://github.com/MapServer/MapServer/security/code-scanning/3
The code at https://github.com/MapServer/MapServer/blob/0cb56232d4ca0e64d747efa1db602ff08e0ea42f/src/mapparser.c#L1787 (which is C code generated from a Bison grammar)
generates "Memory pointed to by may already have been freed by. ", but this is obviously wrong as the memory locations are disjoint.
Extract of "Show path" in the report:
The text was updated successfully, but these errors were encountered: