pidl: Handle obtaining objects from a fixed-size array
authorAndrew Bartlett <abartlet@samba.org>
Tue, 29 Oct 2019 21:19:05 +0000 (21:19 +0000)
committerNoel Power <npower@samba.org>
Thu, 14 Nov 2019 17:36:49 +0000 (17:36 +0000)
commitf38077ea5ee0a8d3d18970e3e183c3ee516fa121
tree840c38f7eb86fdb73a37f34da689dcfc31df2400
parent1261894ecaebc1a3340c42e818be25caa69f6364
pidl: Handle obtaining objects from a fixed-size array

Previously we would assume the array head was the talloc context
however this is not the case if the array is a fixed size inline array
within the parent struct.

In that case the overall object's talloc context is the correct
context to reference.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Thu Nov 14 17:36:49 UTC 2019 on sn-devel-184
pidl/lib/Parse/Pidl/Samba4/Python.pm
selftest/knownfail.d/python-segfaults