Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1commit da8992f44b84a337b4edaa67fc8b36b55eaef696 2Date: Wed Jan 22 23:18:54 2025 +0100 3 4 Reject huge pattern lengths, ticket #185 5 6 Reject patterned lines, e.g., dashed lines, where the 7 pattern length exceeds 80 inches. 8 9diff --git a/fig2dev/object.h b/fig2dev/object.h 10index 29f5a62..7f83939 100644 11--- a/fig2dev/object.h 12+++ b/fig2dev/object.h 13@@ -57,12 +57,13 @@ typedef struct f_comment { 14 struct f_comment *next; 15 } F_comment; 16 17+#define STYLE_VAL_MAX 6400.0 /* dash length 80 inches, that is enough */ 18 #define COMMON_PROPERTIES(o) \ 19 o->style < SOLID_LINE || o->style > DASH_3_DOTS_LINE || \ 20 o->thickness < 0 || o->depth < 0 || o->depth > 999 || \ 21 o->fill_style < UNFILLED || \ 22 o->fill_style >= NUMSHADES + NUMTINTS + NUMPATTERNS || \ 23- o->style_val < 0.0 24+ o->style_val < 0.0 || o->style_val > STYLE_VAL_MAX 25 26 typedef struct f_ellipse { 27 int type;