mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-24 16:48:37 -07:00
The USB buffer size register PCKSIZE.SIZE was not being assigned correctly. As a result, it was possible for an incoming USB transmission to write past the allocated buffer space, which could corrupt memory of other storage. In particular, in some cases gcc may layout ram in such a way that the trailing bytes of an incoming message might overlap the buffer for an outgoing message. This could cause sporadic transmit errors and unstable connections. Fix by correctly configuring the PCKSIZE.SIZE register. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> |
||
|---|---|---|
| .. | ||
| adc.c | ||
| chipid.c | ||
| clock.c | ||
| fdcan.c | ||
| gpio.c | ||
| gpio.h | ||
| hard_pwm.c | ||
| i2c.c | ||
| internal.h | ||
| Kconfig | ||
| main.c | ||
| Makefile | ||
| samc21_clock.c | ||
| samd51_clock.c | ||
| samd51_watchdog.c | ||
| sercom.c | ||
| serial.c | ||
| spi.c | ||
| timer.c | ||
| usbserial.c | ||
| watchdog.c | ||