From c788aa99ddb78e3a01ad3685f5e8be84c7806481 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Thu, 23 Jul 2020 21:52:59 +0800 Subject: [PATCH] fix buffer overflow (#1871) --- selfdrive/boardd/boardd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index 871092ab1..af86be7e0 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -740,7 +740,7 @@ void hexdump(unsigned char *d, int l) { void _pigeon_send(const char *dat, int len) { int sent; - unsigned char a[0x20]; + unsigned char a[0x20+1]; int err; a[0] = 1; for (int i=0; i