SDL_ttf segfault

I’m getting a defintely repeatable segfault in SDL_ttf.

The problem happens when calling TTF_RenderText_Blended on a font
that has TTF_STYLE_UNDERLINE enabled. I’ve tried with a couple
different font files and get the same results.

This is with Win98 with SDL-1.2 and SDL_ttf-1.2.2

I’ve been able to create a “minimal example” that still
crashes. if you comment out the line that enables the
underline, it will run without incident.

(you’ll probably need to change the name of the TTF file
hardcoded in)

begin 666 fontcrash.c
M+RIC<F%S:"!W:&5N(’)E;F1I;F<@=6YD97)L:6YE9"!B;&5N9&5D('1E>'0J
M+PT*#0HC:6YC;'5D92)31$PN:"(-“B-I;F-L=61E(E-$3%]T=&8N:”(-"@T*
M#0II;G0@;6%I;BAI;G0 at 87)G8RP at 8VAA<BHJ(&%R9W8I#0I[#0H)4T1,7U-U
M<F9A8V4J('1E>‘0[#0H)5%1&7T9O;G0J(&9O;G0[#0H)4T1,7T-O;&]R(&-O
M;&]R(#T@>S(P,“P@,C P+” R,#!].PT*“6-H87(J(&UE<W-A9V4@/2 B5&AI
M<R!3<&%C92!&;W(@4F5N=”([#0H-"@E31$Q?26YI=“A31$Q?24Y)5%]6241%
M3RD[#0H)5%1&7TEN:70H3L-"@T"69O;G0@/2!45$9?3W!E;D9O;G0H(F-O
M;6EC+G1T9B(L(#,P3L-"@EI9B at A9F]N=“D-”@E[#0H)"7!R:6YT9B at B1F%I
M;&5D('1O($QO860 at 1F]N=%QN(BD[#0H)"7)E='5R;B Q.PT
"7T-”@T*“2\J
M:&5R92!W92!E;F%B;&4@=6YD97)L:6YE+”!W:&EC:"!W:6QL(’!R;W9E(&9A
M=&%LB-"@E45$9?4V5T1F]N=%-T>6QE&9O;G0L(%141E]35%E,15]53D1%
M4DQ)3D4I.PT*#0H-"@DOG1H:7,@=VEL;"!C<F%S:"P at 87)G:"HO#0H)<’)I
M;G1F
")!='1E;7!T:6YG(‘1O(’)E;F1E<BXN+EQN(BD[#0H)=&5X=" ](%14
M1E]296YD97)497AT7T)L96YD960H9F]N=“P@;65S<V%G92P at 8V]L;W(I.PT*
M"7!R:6YT9B at B1FEN:7-H960@;VL@(” H>6]U(&UU<W0@:&%V92!D:7-A8FQE
M9"!U;F1E<FQI;F4I7&XB3L-"@T"5141E]1=6ET*"D[#0H)4T1,7U%U:70H
53L-"@ER971U<FX@,#L-“GT-”@T
`
end