commit c6d358d4c6926638fe9d5194e3da112c2750c6a4
Author: Ben Nemec <email address hidden>
Date: Tue Jan 8 23:59:10 2019 +0000
Define types for C calls in netlink_lib
Previously this was not done, which meant all arguments were
assumed to be ints. As long as we didn't get any large pointer
addresses this worked fine, but for some reason the addition of
threading to oslo.privsep triggered larger addresses that were then
truncated. This caused segfaults in the underlying C library because
we were passing it invalid pointers.
This change sets argument and return types for all of the calls
that are used in the module.
Reviewed: https:/ /review. openstack. org/629335 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c6d358d4c69 26638fe9d5194e3 da112c2750c6a4
Committed: https:/
Submitter: Zuul
Branch: master
commit c6d358d4c692663 8fe9d5194e3da11 2c2750c6a4
Author: Ben Nemec <email address hidden>
Date: Tue Jan 8 23:59:10 2019 +0000
Define types for C calls in netlink_lib
Previously this was not done, which meant all arguments were
assumed to be ints. As long as we didn't get any large pointer
addresses this worked fine, but for some reason the addition of
threading to oslo.privsep triggered larger addresses that were then
truncated. This caused segfaults in the underlying C library because
we were passing it invalid pointers.
This change sets argument and return types for all of the calls
that are used in the module.
Change-Id: I9dbbb01eac8cf7 cded7794f8ba697 97d6357eeec
Closes-Bug: 1810518