fix buffer overflow (#1871)

pull/214/head
Dean Lee 5 years ago committed by GitHub
parent 2232efbcd4
commit c788aa99dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/boardd/boardd.cc

@ -740,7 +740,7 @@ void hexdump(unsigned char *d, int l) {
void _pigeon_send(const char *dat, int len) { void _pigeon_send(const char *dat, int len) {
int sent; int sent;
unsigned char a[0x20]; unsigned char a[0x20+1];
int err; int err;
a[0] = 1; a[0] = 1;
for (int i=0; i<len; i+=0x20) { for (int i=0; i<len; i+=0x20) {

Loading…
Cancel
Save