]> granicus.if.org Git - python/commit
Fix bugs in readinst():
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 12 Jul 2000 01:27:18 +0000 (01:27 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 12 Jul 2000 01:27:18 +0000 (01:27 +0000)
commitc72c3bed779d9176096abf487ca855aa2871edd8
tree3e8f9b56d740f573bac987f3e5bf9f8343c946b4
parenta4e75d74f8a5569ab6343ae6d5d769bf689e6094
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
Modules/pyexpat.c