Kaydet (Commit) 09994a9c authored tarafından Christian Heimes's avatar Christian Heimes

Check return value of flush_character_buffer()

CID 486663
üst 27c4c3ec
...@@ -1503,7 +1503,9 @@ xmlparse_setattro(xmlparseobject *self, PyObject *name, PyObject *v) ...@@ -1503,7 +1503,9 @@ xmlparse_setattro(xmlparseobject *self, PyObject *name, PyObject *v)
if (self->buffer != NULL) { if (self->buffer != NULL) {
/* there is already a buffer */ /* there is already a buffer */
if (self->buffer_used != 0) { if (self->buffer_used != 0) {
flush_character_buffer(self); if (flush_character_buffer(self) < 0) {
return -1;
}
} }
/* free existing buffer */ /* free existing buffer */
free(self->buffer); free(self->buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment