d85e1fc8a5
This converts os_snprintf() result validation cases to use os_snprintf_error() where the exact rule used in os_snprintf_error() was used. These changes were done automatically with spatch using the following semantic patch: @@ identifier E1; expression E2,E3,E4,E5,E6; statement S1; @@ ( E1 = os_snprintf(E2, E3, ...); | int E1 = os_snprintf(E2, E3, ...); | if (E5) E1 = os_snprintf(E2, E3, ...); else E1 = os_snprintf(E2, E3, ...); | if (E5) E1 = os_snprintf(E2, E3, ...); else if (E6) E1 = os_snprintf(E2, E3, ...); else E1 = 0; | if (E5) { ... E1 = os_snprintf(E2, E3, ...); } else { ... return -1; } | if (E5) { ... E1 = os_snprintf(E2, E3, ...); } else if (E6) { ... E1 = os_snprintf(E2, E3, ...); } else { ... return -1; } | if (E5) { ... E1 = os_snprintf(E2, E3, ...); } else { ... E1 = os_snprintf(E2, E3, ...); } ) ? os_free(E4); - if (E1 < 0 || \( E1 >= E3 \| (size_t) E1 >= E3 \| (unsigned int) E1 >= E3 \| E1 >= (int) E3 \)) + if (os_snprintf_error(E3, E1)) ( S1 | { ... } ) Signed-off-by: Jouni Malinen <j@w1.fi> |
||
---|---|---|
.. | ||
.gitignore | ||
android_drv.h | ||
driver.h | ||
driver_atheros.c | ||
driver_bsd.c | ||
driver_common.c | ||
driver_hostap.c | ||
driver_hostap.h | ||
driver_macsec_qca.c | ||
driver_ndis.c | ||
driver_ndis.h | ||
driver_ndis_.c | ||
driver_nl80211.c | ||
driver_nl80211.h | ||
driver_nl80211_android.c | ||
driver_nl80211_capa.c | ||
driver_nl80211_event.c | ||
driver_nl80211_monitor.c | ||
driver_nl80211_scan.c | ||
driver_none.c | ||
driver_openbsd.c | ||
driver_privsep.c | ||
driver_roboswitch.c | ||
driver_wext.c | ||
driver_wext.h | ||
driver_wired.c | ||
drivers.c | ||
drivers.mak | ||
drivers.mk | ||
linux_defines.h | ||
linux_ioctl.c | ||
linux_ioctl.h | ||
linux_wext.h | ||
Makefile | ||
ndis_events.c | ||
netlink.c | ||
netlink.h | ||
nl80211_copy.h | ||
priv_netlink.h | ||
rfkill.c | ||
rfkill.h |