Fix stack-based buffer overflow in "lf em 4x05 sniff" command

This commit is contained in:
Hanno Heinrichs committed 2022-12-29 13:55:24 +01:00
1 parent b43bb92961
commit 9e0fe3ca36
5 files changed
+54 -28

No files matched your search

+7
View File
@@ -146,4 +146,11 @@ uint32_t leadingzeros32(uint32_t a);
uint64_t leadingzeros64(uint64_t a);
int byte_strstr(uint8_t *src, size_t srclen, uint8_t *pattern, size_t plen);
struct smartbuf {
char *ptr;
size_t size;
size_t idx;
} typedef smartbuf;
void sb_append_char(smartbuf *sb, unsigned char c);
#endif