File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ Bug Fixes
111
111
- Bug in ``DataFrame.to_latex()`` produces an extra rule when ``header=False`` (:issue:`7124`)
112
112
113
113
114
-
114
+ - Bug in ``pandas.json`` when file to load is big (:issue:`11344`)
115
115
- Bugs in ``to_excel`` with duplicate columns (:issue:`11007`, :issue:`10982`, :issue:`10970`)
116
116
- Fixed a bug that prevented the construction of an empty series of dtype
117
117
``datetime64[ns, tz]`` (:issue:`11245`).
Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds)
443
443
444
444
if (ds -> escHeap )
445
445
{
446
- if (newSize > (UINT_MAX / sizeof (wchar_t )))
446
+ if (newSize > (SIZE_MAX / sizeof (wchar_t )))
447
447
{
448
448
return SetError (ds , -1 , "Could not reserve memory block" );
449
449
}
@@ -458,8 +458,7 @@ FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds)
458
458
else
459
459
{
460
460
wchar_t * oldStart = ds -> escStart ;
461
- ds -> escHeap = 1 ;
462
- if (newSize > (UINT_MAX / sizeof (wchar_t )))
461
+ if (newSize > (SIZE_MAX / sizeof (wchar_t )))
463
462
{
464
463
return SetError (ds , -1 , "Could not reserve memory block" );
465
464
}
@@ -468,6 +467,7 @@ FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds)
468
467
{
469
468
return SetError (ds , -1 , "Could not reserve memory block" );
470
469
}
470
+ ds -> escHeap = 1 ;
471
471
memcpy (ds -> escStart , oldStart , escLen * sizeof (wchar_t ));
472
472
}
473
473
You can’t perform that action at this time.
0 commit comments