Skip to content

Commit 9353013

Browse files
vstinnerskirpichev
andauthored
Update Python/marshal.c
Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent 47eaacf commit 9353013

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/marshal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,7 @@ _w_digits##bitsize(uint ## bitsize ## _t *digits, Py_ssize_t size, \
938938
{ \
939939
uint ## bitsize ## _t d; \
940940
\
941+
assert(size >= 1); \
941942
for (Py_ssize_t i = 0; i < size - 1; i++) { \
942943
d = 0; \
943944
for (Py_ssize_t j = 0; j < marshal_ratio; j++) { \

0 commit comments

Comments
 (0)