commit | c72c3bed779d9176096abf487ca855aa2871edd8 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Wed Jul 12 01:27:18 2000 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Wed Jul 12 01:27:18 2000 +0000 |
tree | 3e8f9b56d740f573bac987f3e5bf9f8343c946b4 | |
parent | a4e75d74f8a5569ab6343ae6d5d769bf689e6094 [diff] |
Fix bugs in readinst(): * There was no error reported if the .read() method returns a non-string * If read() returned too much data, the buffer would be overflowed causing a core dump * Used strncpy, not memcpy, which seems incorrect if there are embedded \0s. * The args and bytes objects were leaked