Print

Print


This is the typical problem with array bounds checking in gcc

This has nothing to do with gcc. The style message is produced by cppcheck,
a static analysis checker.

Unfortunately, gcc has roughly a one source line window for analysis

Wrong again.

Suggest new code:

while (k < XrdSecPROTOIDSIZE && k < len && buf[k]) { k++; }

it is often a wise idea to look before you leap.


Reply to this email directly or view it on GitHub.



Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1