Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
libass.30992
libass-CVE-2020-36430.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libass-CVE-2020-36430.patch of Package libass.30992
diff --git a/libass/ass.c b/libass/ass.c index 428a332ff..5be09a7cf 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -857,7 +857,7 @@ static int decode_font(ASS_Track *track) ass_msg(track->library, MSGL_ERR, "Bad encoded data size"); goto error_decode_font; } - buf = malloc(size / 4 * 3 + FFMAX(size % 4 - 1, 0)); + buf = malloc(size / 4 * 3 + FFMAX(size % 4, 1) - 1); if (!buf) goto error_decode_font; q = buf; @@ -871,7 +871,7 @@ static int decode_font(ASS_Track *track) q = decode_chars(p, q, 3); } dsize = q - buf; - assert(dsize == size / 4 * 3 + FFMAX(size % 4 - 1, 0)); + assert(dsize == size / 4 * 3 + FFMAX(size % 4, 1) - 1); if (track->library->extract_fonts) { ass_add_font(track->library, track->parser_priv->fontname,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor