Skip to content

Commit

Permalink
esp_usb_jtag: fix stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erhankur committed May 11, 2021
1 parent 618443d commit f702229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jtag/drivers/esp_usb_jtag.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ static int esp_usb_jtag_init(void)
{
memset(priv, 0, sizeof(struct esp_usb_jtag));

const uint16_t vids[]= {USB_VID};
const uint16_t pids[]= {USB_PID};
const uint16_t vids[]= {USB_VID, 0}; /* must be null terminated */
const uint16_t pids[]= {USB_PID, 0}; /* must be null terminated */

bitq_interface= calloc(sizeof(struct bitq_interface), 1);
bitq_interface->out= esp_usb_jtag_out;
Expand Down

0 comments on commit f702229

Please sign in to comment.