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
CodeQL complains This allocation size is derived from user-input (a command-line argument) and might overflow. on a line of code that is basically calloc(1, size). When one of the arguments is 1, an overflow is impossible. Therefore, this is a false positive.
It should be possible to modify the query to stop reporting this issue whenever one of the arguments is 1. That should eliminate the false positive.
Description of the false positive
CodeQL complains
This allocation size is derived from user-input (a command-line argument) and might overflow.on a line of code that is basicallycalloc(1, size). When one of the arguments is 1, an overflow is impossible. Therefore, this is a false positive.It should be possible to modify the query to stop reporting this issue whenever one of the arguments is 1. That should eliminate the false positive.
URL to the alert
https://github.com/ryao/zfs/security/code-scanning/785
The text was updated successfully, but these errors were encountered: