PPP: Add test exhibiting empty packet null-deref

Also updates lcp.c to compile with PPP_AUTH_SUPPORT=0 in clang
This commit is contained in:
David Cermak
2022-02-18 17:55:37 +01:00
committed by Simon Goldschmidt
parent d8d1e4a015
commit 6b734bbb2c
7 changed files with 94 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
#include "mdns/test_mdns.h"
#include "mqtt/test_mqtt.h"
#include "api/test_sockets.h"
#include "ppp/test_pppos.h"
#include "lwip/init.h"
#if !NO_SYS
@@ -89,6 +90,9 @@ int main(void)
mdns_suite,
mqtt_suite,
sockets_suite
#if PPP_SUPPORT && PPPOS_SUPPORT
, pppos_suite
#endif /* PPP_SUPPORT && PPPOS_SUPPORT */
};
size_t num = sizeof(suites)/sizeof(void*);
LWIP_ASSERT("No suites defined", num > 0);