Branch: refs/heads/master Home: https://github.com/xrootd/xrootd Commit: 0dc292fbf63d25c6a9e000a2e66d7e3e0b8db735 https://github.com/xrootd/xrootd/commit/0dc292fbf63d25c6a9e000a2e66d7e3e0b8db735 Author: Mattias Ellert <[log in to unmask]> Date: 2022-01-24 (Mon, 24 Jan 2022) Changed paths: M src/Xrd/XrdBuffXL.cc M src/XrdNet/XrdNetUtils.cc M src/XrdOuc/XrdOucBuffer.cc M src/XrdOuc/XrdOucTable.hh M src/XrdPosix/XrdPosixAdmin.cc Log Message: ----------- Fix warnings about allocations exceeding maximum object size 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) | ^ Commit: 10b484f5936ad59f1fda2c7baee602fd216a95d2 https://github.com/xrootd/xrootd/commit/10b484f5936ad59f1fda2c7baee602fd216a95d2 Author: Andrew Hanushevsky <[log in to unmask]> Date: 2022-01-24 (Mon, 24 Jan 2022) Changed paths: M src/Xrd/XrdBuffXL.cc M src/XrdNet/XrdNetUtils.cc M src/XrdOuc/XrdOucBuffer.cc M src/XrdOuc/XrdOucTable.hh M src/XrdPosix/XrdPosixAdmin.cc Log Message: ----------- Merge pull request #1600 from ellert/alloc-larger-than Fix warnings about allocations exceeding maximum object size Compare: https://github.com/xrootd/xrootd/compare/970d86da41f0...10b484f5936a ######################################################################## 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