wireshark/tools/pidl/lib
Guy Harris c1a5531b71 pidl: Fix array range checks in python output
Pick up change from Samba:

    commit 67040cf61232dd1cdcc820237919ac1e073c31c2
    Author: Volker Lendecke <vl@samba.org>
    Date:   Tue Jun 20 15:31:18 2017 +0200

        pidl: Fix array range checks in python output

        Without this, we generated code like

        if (ndr_table_dnsserver.num_calls < 0) {
                PyErr_SetString(PyExc_TypeError, "Internal Error, ndr_interface_call missing for py_DnssrvOperation_ndr_pack");
                return NULL;
        }
        call = &ndr_table_dnsserver.calls[0];

        This does not really make sense, and Coverity found comparing the unsigned
        num_calls against <0 a bit pointless.

        Should fix 138 Coverity findings and make the code a bit more correct.

        Signed-off-by: Volker Lendecke <vl@samba.org>
        Reviewed-by: Jeremy Allison <jra@samba.org>

Change-Id: I401e3771e6f3c1125ff847749073693af23884fc
Reviewed-on: https://code.wireshark.org/review/23723
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2017-09-25 07:18:22 +00:00
..
Parse pidl: Fix array range checks in python output 2017-09-25 07:18:22 +00:00
wscript_build PIDL: sync pidl with samba repo 2016-02-29 21:01:13 +00:00