``` .../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); | ~~~~~~^~~~~~~~~ ``` You can view, comment on, or merge this pull request online at: https://github.com/xrootd/xrootd/pull/1620 -- Commit Summary -- * Ignore -Warray-bounds warnings from stricter check in gcc 12. -- File Changes -- M src/XrdFrm/XrdFrmMonitor.cc (9) M src/XrdXrootd/XrdXrootdMonitor.cc (9) -- Patch Links -- https://github.com/xrootd/xrootd/pull/1620.patch https://github.com/xrootd/xrootd/pull/1620.diff -- Reply to this email directly or view it on GitHub: https://github.com/xrootd/xrootd/pull/1620 You are receiving this because you are subscribed to this thread. Message ID: <[log in to unmask]> ######################################################################## 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