TheThingsNetwork / arduino-device-lib

Arduino Library for TTN Devices
MIT License
207 stars 96 forks source link

Fix memory allocation for readLine() #180

Closed johanstokking closed 7 years ago

johanstokking commented 7 years ago

We're allocating a buffer on the stack and returning a pointer to it in readLine(). This regression is introduced here: https://github.com/TheThingsNetwork/arduino-device-lib/commit/9a64475b70831fe73ea8f375c6c345401b7293aa#diff-b2f2810008e6e975eb686e14fbd00f7fR210

This is probably the cause for #172