You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/base/src/TBuffer.cxx
+10-25Lines changed: 10 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,7 @@ Buffer base class used for serializing objects.
19
19
#include"TClass.h"
20
20
#include"TProcessID.h"
21
21
22
-
constexpr Int_t kExtraSpace = 8; // extra space at end of buffer (used for free block count)
23
-
constexpr Int_t kMaxBufferSize = 0x7FFFFFFE; // largest possible size.
22
+
constexprsize_tkExtraSpace = 8; // extra space at end of buffer (used for free block count)
24
23
25
24
26
25
ClassImp(TBuffer);
@@ -72,8 +71,6 @@ TBuffer::TBuffer(EMode mode)
72
71
73
72
TBuffer::TBuffer(EMode mode, Int_t bufsiz)
74
73
{
75
-
if (bufsiz < 0)
76
-
Fatal("TBuffer","Request to create a buffer with a negative size, likely due to an integer overflow: 0x%x for a max of 0x%x.", bufsiz, kMaxBufferSize);
Fatal("TBuffer","Request to create a buffer with a negative size, likely due to an integer overflow: 0x%x for a max of 0x%x.", bufsiz, kMaxBufferSize);
/// \note Due to the current limit of the buffer size, the function aborts execution of the program in case of underflow or overflow. See https://github.com/root-project/root/issues/6734 for more details.
0 commit comments