diff options
| author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-05-08 11:33:43 +1200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2021-05-28 09:00:34 +0000 |
| commit | 9019e08c61a9b0bfce9ef295089ad42e46e784e2 (patch) | |
| tree | 9a1fd2ba253ba99d937cfee8112fe349c7d170e4 /python | |
| parent | f7cf8132b007aadc861efcb26060c075c45978b5 (diff) | |
| download | samba-9019e08c61a9b0bfce9ef295089ad42e46e784e2.tar.gz samba-9019e08c61a9b0bfce9ef295089ad42e46e784e2.tar.bz2 samba-9019e08c61a9b0bfce9ef295089ad42e46e784e2.zip | |
pytest:segfault: Add test for assigning to an inline array
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14065
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/tests/segfault.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/samba/tests/segfault.py b/python/samba/tests/segfault.py index c6e17ed6ead..1b9c9a0cab6 100644 --- a/python/samba/tests/segfault.py +++ b/python/samba/tests/segfault.py @@ -184,3 +184,11 @@ class SegfaultTests(samba.tests.TestCase): def test_dcerpc_idl_inline_arrays(self): """Inline arrays were incorrectly handled.""" dnsserver.DNS_RPC_SERVER_INFO_DOTNET().pExtensions + + @no_gdb_backtrace + @segfault_detector + def test_dcerpc_idl_set_inline_arrays(self): + """Setting an inline array was incorrectly handled.""" + a = dnsserver.DNS_EXTENSION(); + x = dnsserver.DNS_RPC_DP_INFO(); + x.pwszReserved = [a, a, a] |
