Francesco Romani has posted comments on this change. Change subject: stomp: Make sure the \0 is a last char in the buffer ......................................................................
Patch Set 14: (1 comment) https://gerrit.ovirt.org/#/c/35938/14/lib/yajsonrpc/stomp.py File lib/yajsonrpc/stomp.py: Line 252: ndata = len(buf) Line 253: if ndata < (cl + 1): Line 254: return False Line 255: Line 256: if buf[cl] != "\0": why not buf.endswith("\0") ? Line 257: raise RuntimeError("Frame end is missing \\0") Line 258: Line 259: remainingBytes = 0 Line 260: self._flush() -- To view, visit https://gerrit.ovirt.org/35938 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie0d8eaae161f3ec6c77726f4f9da044ab7c629d4 Gerrit-PatchSet: 14 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Saggi Mizrahi <smizr...@redhat.com> Gerrit-Reviewer: Dima Kuznetsov <dkuzn...@redhat.com> Gerrit-Reviewer: Francesco Romani <from...@redhat.com> Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczew...@gmail.com> Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com> Gerrit-Reviewer: Yeela Kaplan <ykap...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches