diff options
author | Yoctopuce <dev@yoctopuce.com> | 2024-06-13 11:23:57 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-06-26 14:12:57 +1000 |
commit | 3d93fed0aab85f5a7a64088026822ea55cc63541 (patch) | |
tree | 244d9df5b25aeeebe42dd1d816402be17ef429ec /docs/esp8266/tutorial/network_tcp.rst | |
parent | 9111fa58312440fbddb4e67e9966386b3890d8d6 (diff) |
py/objarray: Fix buffer overflow in case of memory allocation failure.
If `array.append()` fails with an exception due to heap exhaustion, the
next attempt to grow the buffer will cause a buffer overflow because the
free slot count is increased before performing the allocation, and will
stay as if the allocation succeeded.
Signed-off-by: Yoctopuce <dev@yoctopuce.com>
Diffstat (limited to 'docs/esp8266/tutorial/network_tcp.rst')
0 files changed, 0 insertions, 0 deletions