mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +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;
|
unsigned len = 1;
|
||||||
const char * p = s;
|
const char * p = s;
|
||||||
while (*p) {
|
while (*p) {
|
||||||
if (p[0] == '_' && p[1] == 'X') {
|
if (p[0] == '_' && p[1] != '\0' && p[1] == 'X') {
|
||||||
len += 3;
|
len += 3;
|
||||||
p += 2;
|
p += 2;
|
||||||
} else if (isalnum(p[0]) || p[0] == '_') {
|
} else if (isalnum(p[0]) || p[0] == '_') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user