diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
commit | 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch) | |
tree | 2784370cda9bbf2da9114d70f05399c0b229d28c /tools/detect_bad_alloc_patterns.py | |
parent | Adding debian version 4.2.6-1. (diff) | |
download | wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/detect_bad_alloc_patterns.py')
-rw-r--r-- | tools/detect_bad_alloc_patterns.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/detect_bad_alloc_patterns.py b/tools/detect_bad_alloc_patterns.py index a89ceb6f..b2459c6e 100644 --- a/tools/detect_bad_alloc_patterns.py +++ b/tools/detect_bad_alloc_patterns.py @@ -69,8 +69,8 @@ def test_replacements(): test_string = """\ (if_info_t*) g_malloc0(sizeof(if_info_t)) (oui_info_t *)g_malloc(sizeof (oui_info_t)) -(guint8 *)g_malloc(16 * sizeof(guint8)) -(guint32 *)g_malloc(sizeof(guint32)*2) +(uint8_t *)g_malloc(16 * sizeof(uint8_t)) +(uint32_t *)g_malloc(sizeof(uint32_t)*2) (struct imf_field *)g_malloc (sizeof (struct imf_field)) (rtspstat_t *)g_malloc( sizeof(rtspstat_t) ) (proto_data_t *)wmem_alloc(scope, sizeof(proto_data_t)) @@ -85,8 +85,8 @@ def test_replacements(): expected_output = """\ g_new0(if_info_t, 1) g_new(oui_info_t, 1) -g_new(guint8, 16) -g_new(guint32, 2) +g_new(uint8_t, 16) +g_new(uint32_t, 2) g_new(struct imf_field, 1) g_new(rtspstat_t, 1) wmem_new(scope, proto_data_t) |