Print

Print


~~~
/builddir/build/BUILD/xrootd-5.5.1/src/XrdPosix/XrdPosixAdmin.cc: In member function 'FanOut': /builddir/build/BUILD/xrootd-5.5.1/src/XrdPosix/XrdPosixAdmin.cc:69:27: error: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=]
   69 |    uVec = new XrdCl::URL[i];
      |                           ^
/usr/include/c++/13/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)
      |                          ^
~~~
Failure happens with gcc 13 on 32 bit systems.
You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/1881

-- Commit Summary --

  * Fix build faildure due to possible large memory allocation

-- File Changes --

    M src/XrdPosix/XrdPosixAdmin.cc (3)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/1881.patch
https://github.com/xrootd/xrootd/pull/1881.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/1881
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