mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Berry fix vulnerability in solidify code
Found by Claude.ai
This commit is contained in:
parent
d7f9142833
commit
6a4f09c888
@ -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] == '_') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user