patch-lib_cgraph_scan_l 594 B

1234567891011121314151617
  1. $OpenBSD: patch-lib_cgraph_scan_l,v 1.2 2015/08/21 16:06:06 jasper Exp $
  2. Security fix for CVE-2014-9157, graphviz: format string vulnerability in yyerror()
  3. https://github.com/ellson/graphviz/commit/99eda421f7ddc27b14e4ac1d2126e5fe41719081.patch
  4. --- lib/cgraph/scan.l.orig2 Fri Aug 21 10:25:19 2015
  5. +++ lib/cgraph/scan.l Fri Aug 21 10:25:42 2015
  6. @@ -223,7 +223,7 @@ void yyerror(char *str)
  7. agxbput (&xb, buf);
  8. agxbput (&xb, yytext);
  9. agxbput (&xb,"'\n");
  10. - agerr(AGWARN,agxbuse(&xb));
  11. + agerr(AGWARN, "%s", agxbuse(&xb));
  12. agxbfree(&xb);
  13. }
  14. /* must be here to see flex's macro defns */