transfig/CVE-2025-46399.patch
starlet-dx 817bc7b6e3 Fix CVE-2025-46397,CVE-2025-46398,CVE-2025-46399 and CVE-2025-46400
(cherry picked from commit 4b566e23152cd652f6ff32a9c55d5adc2cf366b9)
2025-04-29 14:07:48 +08:00

24 lines
597 B
Diff

Origin:
https://sourceforge.net/p/mcj/tickets/190/
https://sourceforge.net/p/mcj/fig2dev/ci/2bd6c0b210916d0d3ca81f304535b5af0849aa93/
--- a/fig2dev/dev/genge.c 2025-04-29 14:04:55.185400762 +0800
+++ b/fig2dev/dev/genge.c 2025-04-29 14:06:40.765400762 +0800
@@ -229,8 +229,6 @@
int xmin, ymin;
a = s->controls;
-
- a = s->controls;
p = s->points;
/* go through the points to find the last two */
for (q = p->next; q != NULL; p = q, q = q->next) {
@@ -238,6 +236,7 @@
a = b;
}
+ a = s->controls;
p = s->points;
fprintf(tfp, "n %d %d m\n", p->x, p->y);
xmin = 999999;