diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-07-12 01:27:18 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-07-12 01:27:18 +0000 |
commit | 4244d63961273d43f4e81bc0dcef00a703a2fcd1 (patch) | |
tree | a8f46b595ecd6c5b6888a2338b2e04a3e359df63 /Python/exceptions.c | |
parent | 4978ee049c63117a8d2346a24383d81ec2c978ef (diff) | |
download | cpython-4244d63961273d43f4e81bc0dcef00a703a2fcd1.tar.gz |
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
Diffstat (limited to 'Python/exceptions.c')
0 files changed, 0 insertions, 0 deletions