3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-27 19:05:52 +00:00

libs/fst: Patch wx_len overread

This commit is contained in:
Krystine Sherwin 2025-02-25 17:18:15 +13:00
parent 67a0248186
commit 68e9317f1f
No known key found for this signature in database
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- fstapi.cc
+++ fstapi.cc
@@ -6072,6 +6072,7 @@ for(;;)
}
wx_len = snprintf(wx_buf, 32, "r%.16g", d);
+ if (wx_len > 32 || wx_len < 0) wx_len = 32;
fstWritex(xc, wx_buf, wx_len);
}
}