mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix SEGV when $fgets, $sscanf, or $fscanf is used with string (#2604)
* Add a test to use string for $fgets * Use dedicated function for $fgets to std::string * share the implementation of $fgets * Pass -1 for bitwidth of std::string to distinguish from POD * add checks for scanf with string * apply clang-format
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
hi
|
||||
lquad
|
||||
widestuff
|
||||
string
|
||||
*xa=1f xb=237904689_02348923
|
||||
*ba=10 bb=11010010101001010101 note_the_two
|
||||
*oa=23 ob=12563
|
||||
*d=-236123
|
||||
*u=-236124
|
||||
*fredfishblah
|
||||
aBCD not_included
|
||||
12346789
|
||||
|
||||
Reference in New Issue
Block a user