diff options
author | Peter Harris <pharris@opentext.com> | 2021-03-25 15:56:31 -0400 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-11 15:02:21 -0700 |
commit | efb287223612e9225e5089bed76e348c236b15f0 (patch) | |
tree | 33acf8a523b27c17d2d262ce6042f8b30684b9d2 /src/util/replace.h | |
parent | 3c8fdf6e35bed077a5614b4094770e668c96b9e9 (diff) |
Fix buffer overrun in FontFileMakeDir on WIN32
When dirName is "" (eg. when called by BuiltinReadDirectory),
FontFileMakeDir would read after the string when WIN32 is defined.
Fix the overrun issue by checking the location of the found :
before adding two.
Signed-off-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/util/replace.h')
0 files changed, 0 insertions, 0 deletions