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
The QB_MIN(maxlen-1, srclen) expression underflows for maxlen=0 because maxlen is unsigned, thus strlcpy(d,s,0) becomes strcpy(d,s) contrary to the function documentation. I don't think it affects the current code base, but probably worth fixing nevertheless to avoid future accidents.
The text was updated successfully, but these errors were encountered:
chrissie-c
added a commit
to chrissie-c/libqb
that referenced
this issue
Jan 4, 2021
The
QB_MIN(maxlen-1, srclen)
expression underflows formaxlen=0
becausemaxlen
is unsigned, thusstrlcpy(d,s,0)
becomesstrcpy(d,s)
contrary to the function documentation. I don't think it affects the current code base, but probably worth fixing nevertheless to avoid future accidents.The text was updated successfully, but these errors were encountered: