forked from osmocom/wireshark
e16166a74c
Adds a pre-commit hook for detecting and replacing occurrences of `g_malloc()` and `wmem_alloc()` with `g_new()` and `wmem_new()`, to improve the readability of Wireshark's code, and occurrences of `g_malloc(sizeof(struct myobj) * foo)` with `g_new(struct myobj, foo)` to prevent integer overflows Also fixes all existing occurrences across the codebase. |
||
---|---|---|
.. | ||
.editorconfig | ||
CMakeLists.txt | ||
airpcap.h | ||
airpcap_loader.c | ||
airpcap_loader.h | ||
capture-pcap-util-int.h | ||
capture-pcap-util-unix.c | ||
capture-pcap-util.c | ||
capture-pcap-util.h | ||
capture-wpcap.c | ||
capture-wpcap.h | ||
capture_ifinfo.h | ||
capture_win_ifnames.c | ||
capture_win_ifnames.h | ||
iface_monitor.c | ||
iface_monitor.h | ||
ws80211_utils.c | ||
ws80211_utils.h |