mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
System/Libraries/Html/Renderer: Increase size of work buffer for @set_css_distance to avoid crashing
This commit is contained in:
@@ -390,7 +390,7 @@ U0 @set_css_distance(U8* str, F64* value, I64* type)
|
|||||||
*type = CSS_DISTANCE_AUTO;
|
*type = CSS_DISTANCE_AUTO;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
U8 buf[16];
|
U8 buf[128];
|
||||||
StrCpy(buf, str);
|
StrCpy(buf, str);
|
||||||
if (String.EndsWith("px", buf)) {
|
if (String.EndsWith("px", buf)) {
|
||||||
buf[StrLen(buf) - 2] = NULL;
|
buf[StrLen(buf) - 2] = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user