SEGV on FT_Set_Char_Size
Like #1138 (closed), I continue with the following code:
#include "ft2build.h"
#include FT_FREETYPE_H
int main (int argc, char **argv) {
FT_Library lib;
FT_Face face;
if (FT_Init_FreeType(&lib)) return 0;
if (FT_New_Face(lib, argv[1], 723671068799139841, &face)) return 0;
if (FT_Set_Char_Size(face, 64, 723671068799139841, 168492800, 3204579335)) return 0;
}
and here is the font filetestface
This time FT_New_Face()
returns 0, but FT_Set_Char_Size()
throws a SIGSEGV, other than returns a non-zero value. Is this another bug?
AddressSanitizer:DEADLYSIGNAL
=================================================================
==197884==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000018 (pc 0x7fbb69a86913 bp 0x7ffff0b5bff0 sp 0x7ffff0b5bf10 T0)
==197884==The signal is caused by a READ memory access.
==197884==Hint: address points to the zero page.
#0 0x7fbb69a86913 in FNT_Size_Request
#1 0x7fbb6976cad1 in FT_Request_Size
#2 0x7fbb6976d18e in FT_Set_Char_Size
#3 0x4c6ca7 in main
#4 0x7fbb691630b2 in __libc_start_main
#5 0x41c30d in _start
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV in FNT_Size_Request
==197884==ABORTING