~~~ In member function 'Init', inlined from 'Init' at .../src/Xrd/XrdBuffXL.cc:64:6: .../src/Xrd/XrdBuffXL.cc:90:30: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 90 | bucket = new BuckVec[lg2+1]; | ^ /usr/include/c++/12/new: In member function 'Init': /usr/include/c++/12/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ .../src/XrdOuc/XrdOucBuffer.cc: In member function '__ct_base ': .../src/XrdOuc/XrdOucBuffer.cc:79:30: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 79 | bSlot = new BuffSlot[slots]; | ^ /usr/include/c++/12/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ .../src/XrdNet/XrdNetUtils.cc: In function 'GetAddrs': .../src/XrdNet/XrdNetUtils.cc:262:35: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 262 | *aVec = new XrdNetAddr[aVsz]; | ^ /usr/include/c++/12/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In member function '__ct ', inlined from '__ct_base ' at .../src/XrdXrootd/XrdXrootdJob.cc:459:29: .../src/./XrdOuc/XrdOucTable.hh:43:30: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 43 | Table = new OucTable[maxe]; | ^ /usr/include/c++/12/new: In member function '__ct_base ': /usr/include/c++/12/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ .../src/XrdPosix/XrdPosixAdmin.cc: In member function 'FanOut': .../src/XrdPosix/XrdPosixAdmin.cc:69:27: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 69 | uVec = new XrdCl::URL[i]; | ^ /usr/include/c++/12/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ ~~~ You can view, comment on, or merge this pull request online at: https://github.com/xrootd/xrootd/pull/1600 -- Commit Summary -- * Fix warnings about allocations exceeding maximum object size -- File Changes -- M src/Xrd/XrdBuffXL.cc (3) M src/XrdNet/XrdNetUtils.cc (2) M src/XrdOuc/XrdOucBuffer.cc (2) M src/XrdOuc/XrdOucTable.hh (2) M src/XrdPosix/XrdPosixAdmin.cc (2) -- Patch Links -- https://github.com/xrootd/xrootd/pull/1600.patch https://github.com/xrootd/xrootd/pull/1600.diff -- Reply to this email directly or view it on GitHub: https://github.com/xrootd/xrootd/pull/1600 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