Berry fix vulnerability in solidify code

Found by Claude.ai
This commit is contained in:
s-hadinger 2025-05-24 09:48:42 +02:00 committed by GitHub
parent d7f9142833
commit 6a4f09c888
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ static unsigned toidentifier_length(const char *s)
unsigned len = 1;
const char * p = s;
while (*p) {
if (p[0] == '_' && p[1] == 'X') {
if (p[0] == '_' && p[1] != '\0' && p[1] == 'X') {
len += 3;
p += 2;
} else if (isalnum(p[0]) || p[0] == '_') {