[psaux] Fix potential buffer overflow (#45922).

* src/psaux/psobjs.c (ps_parser_skip_PS_token): If a token is
enclosed in balanced expressions, ensure that the cursor position
doesn't get larger than the current limit.
This commit is contained in:
Werner Lemberg 2015-09-12 08:32:55 +02:00
parent 19b82cfbed
commit db5a4a9ae7
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2015-09-11 Werner Lemberg <wl@gnu.org>
[psaux] Fix potential buffer overflow (#45922).
* src/psaux/psobjs.c (ps_parser_skip_PS_token): If a token is
enclosed in balanced expressions, ensure that the cursor position
doesn't get larger than the current limit.
2015-09-11 Werner Lemberg <wl@gnu.org>
[base] Avoid crash while tracing `load_mac_face'.

View File

@ -594,6 +594,9 @@
error = FT_THROW( Invalid_File_Format );
}
if ( cur > limit )
cur = limit;
parser->error = error;
parser->cursor = cur;
}