summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2020-08-23 15:16:00 +0200
committerDamien George <damien@micropython.org>2020-08-27 12:39:11 +1000
commitcef678b2dbab528a54bc36bd6c3be84a38857629 (patch)
treea9fa5920a171b2f2dcc04ec0786062db23fdc371 /docs/conf.py
parent0c3f9d58a5dcf0480460548a416f27d9c8350f3c (diff)
extmod/machine_i2c: Fix buffer overrun if 'addrsize' is bigger than 32.
The memory operation functions read_mem() and write_mem() create a temporary buffer on the local C stack for the address bytes with the size of 4 bytes. This buffer is filled in a loop from the user supplied address and address length. If the user supplied 'addrsize' is bigger than 32, the local buffer is overrun. Fix this by raising an exception for invalid 'addrsize' values. Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'docs/conf.py')
0 files changed, 0 insertions, 0 deletions