magic/lef
Sylvain Munaut 9d3fb61cf3 defRead: Accept usename longer than 511 char
The previous code always read in a defined size buffer and any
name longer gets cut which causes issue during extraction because
any collision on the truncated name causes components to get "lost".

So here instead we keep a local stack buffer of 512 byte and use it
if possible, but for longer string we allocate some space on the heap
temporarily.

Some later error processing had to be refactored a bit to make sure
we can always clean-up after ourselves once we're done with the
buffer.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2025-11-23 20:14:21 +01:00
..
Makefile Implemented a new configuration variable "dist_prefix" for 2020-01-28 10:40:01 -05:00
defRead.c defRead: Accept usename longer than 511 char 2025-11-23 20:14:21 +01:00
defWrite.c include <unistd.h> where necessary in files using API calls 2025-07-27 12:42:05 -04:00
lef.h header file #ifndef guard namespace consistency (global change) 2025-07-29 10:50:32 -04:00
lefCmd.c Reworked the "def read" command such that it creates a new CellDef 2025-08-26 14:48:27 -04:00
lefInt.h Reworked the "def read" command such that it creates a new CellDef 2025-08-26 14:48:27 -04:00
lefRead.c Corrected an error that accidentally misses an input line from a 2025-08-20 15:01:57 -04:00
lefTech.c lef: constify strings in data structures of lef module 2025-02-22 21:48:17 -05:00
lefWrite.c Ti[GS]etClient() usage enforcement 2025-04-09 14:55:58 -04:00
tcllef.c K&R lef/*.c: bulk forward reference function prototype conversion 2025-02-22 21:48:17 -05:00