dbase-pecl-php7 icon indicating copy to clipboard operation
dbase-pecl-php7 copied to clipboard

fix "Abort trap: 6" during dbase_replace_record()

Open heahoh opened this issue 7 years ago • 1 comments

When using dbase package in Mac OS X this error is raised when a record is written to disk, for example using dbase_replace_record

Make output: dbf_head.c:193:2: warning: '__builtin___strlcpy_chk' will always overflow destination buffer [-Wbuiltin-memcpy-chk-size] strlcpy(dbfield.dbf_name, dbf->db_fname, DBF_NAMELEN + 1);

Setting compiler flag -Wno-builtin-memcpy-chk-size does not fix this problem

See https://bugs.php.net/bug.php?id=74983

I'm use PHP 7.1.8 (cli) (built: Aug 7 2017 15:02:45) ( NTS )

heahoh avatar Sep 19 '17 12:09 heahoh

I think you better email the maintainers at https://pecl.php.net/package/dbase this, they better understand the code and this github version was just a short term solution while there was no official pecl dbase extension.

mote0230 avatar Sep 21 '17 17:09 mote0230