summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modubinascii.h
diff options
context:
space:
mode:
authorKrzysztof Blazewicz <krzysztof.blazewicz@uxeon.com>2016-08-20 13:45:25 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-08-24 01:33:31 +0300
commit656207645485295477411224fdf41cfd4d598a88 (patch)
tree93ea9e4162da4c54ae5784d6643b7f6d55248d32 /extmod/modubinascii.h
parent5a5449d4eb46465e5d47fb20104e13122ea4110b (diff)
downloadmicropython-656207645485295477411224fdf41cfd4d598a88.tar.gz
micropython-656207645485295477411224fdf41cfd4d598a88.zip
py/stream.c: use mp_obj_get_type in mp_get_stream_raise
In current state `mp_get_stream_raise` assumes that `self_in` is an object and always performs a pointer derefence which may cause a segfault. This function shall throw an exception whenever `self_in` does not implement a stream protocol, that includes qstr's and numbers. fixes #2331
Diffstat (limited to 'extmod/modubinascii.h')
0 files changed, 0 insertions, 0 deletions