Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OTS-VALIDATOR-CHECKER(1)	 User Commands	      OTS-VALIDATOR-CHECKER(1)

NAME
       ots-validator-checker - font validation checker

SYNOPSIS
       ots-validator-checker FONT_FILE

DESCRIPTION
       ots-validator-checker  is  a program which is intended to validate mal-
       formed fonts.  If the program detects that  the	font  is  invalid,  it
       prints "OK" and returns with 0 (success).  If it	couldnt	detect any er-
       rors, the program then opens the	transcoded font	and renders some char-
       acters using FreeType:

	      transcoded_font =	ValidateAndTranscode(malicious_font);
	      if (validation_error)
		Print("OK");
	      OpenAndRenderSomeCharacters(transcoded_font);  # may cause SIGSEGV
	      Print("OK");

       If  SEGV	doesn't	raise inside FreeType library, the program prints "OK"
       and returns with	0 as well.  You	should run this	tool under the	catch-
       segv(1)	or  valgrind(1)	command	so that	you can	easily verify that all
       transformed fonts don't crash the library (see the example below).

EXAMPLES
	      $	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

REPORTING BUGS
       Report bugs to  <https://github.com/khaledhosny/ots/issues>

SEE ALSO
       ots-idempotent(1), ots-perf(1), ots-sanitize(1),	ots-side-by-side(1)

OpenType Sanitizer		   May 2021	      OTS-VALIDATOR-CHECKER(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=ots-validator-checker&sektion=1&manpath=FreeBSD+Ports+15.0.quarterly>

home | help