Fix a corner case in RUN-PROGRAM with very long argument strings
authorPaul Khuong <pvk@pvk.ca>
Sat, 11 Jun 2011 03:33:04 +0000 (23:33 -0400)
committerPaul Khuong <pvk@pvk.ca>
Sat, 11 Jun 2011 03:33:04 +0000 (23:33 -0400)
commitedd4f6337f9955c34716ff87a50e4cb20e8a8521
tree6e132f1d78a56cfdd6800f5671568c4afc24f07b
parent0a3d799b59df15a7fcd680182f88feda8704f261
Fix a corner case in RUN-PROGRAM with very long argument strings

 Argument string of length on the order of MOST-POSITIVE-FIXNUM
 could lead to severe crashes.

 I don't know why we bothered declaring FIXNUMs in RUN-PROGRAM.

 Also, play with the null termination code a bit, but, really,
 such long strings will only end up failing in the OS.

 Fixes lp#787237
src/code/run-program.lisp