Branch: refs/heads/master
Home: https://github.com/xrootd/xrootd
Commit: 8095e021588150a584371ffbbf50e5b0bb7d4ede
https://github.com/xrootd/xrootd/commit/8095e021588150a584371ffbbf50e5b0bb7d4ede
Author: Mattias Ellert <[log in to unmask]>
Date: 2022-02-04 (Fri, 04 Feb 2022)
Changed paths:
M src/XrdFrm/XrdFrmMonitor.cc
M src/XrdXrootd/XrdXrootdMonitor.cc
Log Message:
-----------
Ignore -Warray-bounds warnings from stricter check in gcc 12.
.../src/XrdFrm/XrdFrmMonitor.cc: In function 'XrdFrmMonitor::Init(char const*, char const*, char const*)':
.../src/XrdFrm/XrdFrmMonitor.cc:158:12: warning: array subscript 'struct XrdXrootdMonMap[0]' is partly outside array bounds of 'unsigned char[1036]' [-Warray-bounds]
158 | mP->hdr.pseq = 0;
| ~~~~~~~~^~~~
.../src/XrdFrm/XrdFrmMonitor.cc:155:26: note: object of size [13, 1036] allocated by 'malloc'
155 | idRec = (char *)malloc(idLen+1);
| ~~~~~~^~~~~~~~~
.../src/XrdFrm/XrdFrmMonitor.cc:159:8: warning: array subscript 'struct XrdXrootdMonMap[0]' is partly outside array bounds of 'unsigned char[1036]' [-Warray-bounds]
159 | mP->dictid = 0;
| ~~~~^~~~~~
.../src/XrdFrm/XrdFrmMonitor.cc:155:26: note: object of size [13, 1036] allocated by 'malloc'
155 | idRec = (char *)malloc(idLen+1);
| ~~~~~~^~~~~~~~~
.../src/XrdXrootd/XrdXrootdMonitor.cc: In function 'XrdXrootdMonitor::Init(XrdScheduler*, XrdSysError*, char const*, char const*, char const*, int)':
.../src/XrdXrootd/XrdXrootdMonitor.cc:634:12: warning: array subscript 'struct XrdXrootdMonMap[0]' is partly outside array bounds of 'unsigned char[1036]' [-Warray-bounds]
634 | mP->hdr.pseq = 0;
| ~~~~~~~~^~~~
.../src/XrdXrootd/XrdXrootdMonitor.cc:631:26: note: object of size [13, 1036] allocated by 'malloc'
631 | idRec = (char *)malloc(idLen+1);
| ~~~~~~^~~~~~~~~
.../src/XrdXrootd/XrdXrootdMonitor.cc:635:8: warning: array subscript 'struct XrdXrootdMonMap[0]' is partly outside array bounds of 'unsigned char[1036]' [-Warray-bounds]
635 | mP->dictid = 0;
| ~~~~^~~~~~
.../src/XrdXrootd/XrdXrootdMonitor.cc:631:26: note: object of size [13, 1036] allocated by 'malloc'
631 | idRec = (char *)malloc(idLen+1);
| ~~~~~~^~~~~~~~~
Commit: 1639703ad9ad7d90ad45628cce8b390c84dbdd4b
https://github.com/xrootd/xrootd/commit/1639703ad9ad7d90ad45628cce8b390c84dbdd4b
Author: Andrew Hanushevsky <[log in to unmask]>
Date: 2022-02-16 (Wed, 16 Feb 2022)
Changed paths:
M src/XrdFrm/XrdFrmMonitor.cc
M src/XrdXrootd/XrdXrootdMonitor.cc
Log Message:
-----------
Merge pull request #1620 from ellert/array-bounds
Ignore -Warray-bounds warnings from stricter check in gcc 12.
Compare: https://github.com/xrootd/xrootd/compare/660014d05774...1639703ad9ad
########################################################################
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
|