OTS-VALIDATOR-CHECKER(1)
π OTS-VALIDATOR-CHECKER π
okay bestie, welcome to ots-validator-checker, the manual page for the font validation checker that ships in section 1 of the manual (User Commands, if you're keeping score) β¨
πΈ NAME πΈ
ots-validator-checker β font validation checker π¦
π SYNOPSIS π
ots-validator-checker FONT_FILE
β¨ DESCRIPTION β¨
so. ots-validator-checker is a program whose whole entire thing is validating malformed fonts π
here's the twist that makes it iconic: if the program detects that the font is invalid, it prints OK and returns with 0 (success). yes, fr fr, that's the design, we love a chaotic queen π
and if it couldn't detect any errors? then the program goes ahead and opens the transcoded font and renders some characters using FreeType:
transcoded_font = ValidateAndTranscode(malicious_font);
if (validation_error)
Print("OK");
OpenAndRenderSomeCharacters(transcoded_font); # may cause SIGSEGV
Print("OK");
so if SEGV doesn't raise inside the FreeType library, the program prints OK and returns with 0 as well π
bestie, listen to me on this one: you should run this tool under thecatchsegv(1)orvalgrind(1)command so that you can easily verify that all transformed fonts don't crash the library π like, please, it's right there in the example below π«Ά
π₯ EXAMPLES π₯
look at her go:
$ for f in malformed/*.ttf ; do catchsegv ./ots-validator-checker "$f" ; done
OK: the malicious font was filtered: malformed/1.ttf
OK: the malicious font was filtered: malformed/2.ttf
OK: FreeType2 didn't crash: malformed/3.ttf
OK: the malicious font was filtered: malformed/4.ttf
no cap, every single one of them said OK. main character energy π
π REPORTING BUGS π
found a bug? report it to <https://github.com/khaledhosny/ots/issues> β the devs wanna hear it, not me π
π SEE ALSO π
the whole friend group, honestly π
that's the whole page, bestie π this one came from OpenType Sanitizer, dated May 2021 β and that's the vibe check, periodt β¨π π¦
π¦ where this page comes from
- epel 10: opentype-sanitizer 9.3.0-1.el10_3 Β· BSD-3-Clause
- epel 9: opentype-sanitizer 9.3.0-1.el9 Β· BSD-3-Clause
- fedora 43: opentype-sanitizer 9.2.0-4.fc43 Β· BSD-3-Clause
- fedora 43: opentype-sanitizer 9.3.0-1.fc43 Β· BSD-3-Clause
- fedora 44: opentype-sanitizer 9.2.0-6.fc44 Β· BSD-3-Clause
- fedora 44: opentype-sanitizer 9.3.0-1.fc44 Β· BSD-3-Clause
- nixos 26.05: opentype-sanitizer 9.2.0
- nixpkgs unstable: opentype-sanitizer 9.3.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms