Skip to content

Commit 341839b

Browse files
committed
Revert "Allocate array of size NAME_MAXLEN"
This reverts commit 21d665a.
1 parent 21d665a commit 341839b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6014,7 +6014,7 @@ _PyUnicode_DecodeUnicodeEscapeInternal(const char *s,
60146014

60156015
/* map to uppercase before calling getcode, which does
60166016
* case-sensitive comparisons */
6017-
char buffer[256]; /* NAME_MAXLEN */
6017+
char buffer[namelen];
60186018
size_t i;
60196019
for (i = 0; i < namelen; i++) {
60206020
buffer[i] = Py_TOUPPER(start[i]);

0 commit comments

Comments
 (0)