icestorm/icetime
Cliff L. Biffle e787fa2d30 icetime: never silently truncate asc file lines
icetime was reading the asc configuration file using a 128-byte line
buffer -- which is usually fine, but can cause it to truncate the names
of nets given in .sym lines if those names are very, very long.  The way
fgets was being used meant this went undetected.

Long net names like this can arise in deeply hierarchical designs,
particularly if there's a code generator involved.

This change:
1. Increases the buffer size to 64kiB.
2. Adds a truncation check that causes icetime to fail.

A more robust solution would manage the line buffer on the heap, since
the symbol gets copied into a std::string anyway, but this is a
workaround for now.
2017-05-09 08:06:43 -07:00
..
.gitignore Added/improved support for mxe-based win32 cross builds 2016-02-14 13:47:27 +01:00
Makefile Clean up Makefiles 2017-02-12 16:13:03 +03:00
cells.v icetime progress 2016-01-01 00:32:28 +01:00
icetime.cc icetime: never silently truncate asc file lines 2017-05-09 08:06:43 -07:00
mktest.py icefuzz improvements (hacks for sbtimer device info) 2016-01-16 12:35:04 +01:00
show.sh Renamed IceBox .txt files to .asc files 2016-01-01 15:08:41 +01:00
timings.py Add LP384 support to icetime 2017-03-13 11:34:02 +01:00