diff options
author | stijn <stijn@ignitron.net> | 2023-11-06 15:48:13 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-11-09 15:01:34 +1100 |
commit | 365913953a4e050eab45c00e637e92f612400b11 (patch) | |
tree | caf2cff9bf3ea576554c8cae66a637c4057dca83 /examples/usercmodule/cppexample/example.cpp | |
parent | 3b954698fa036ab34fe578ce46ff9fa5cf6ca4ce (diff) | |
download | micropython-365913953a4e050eab45c00e637e92f612400b11.tar.gz micropython-365913953a4e050eab45c00e637e92f612400b11.zip |
extmod/vfs_posix_file: Make standard file objects non-const.
Fixes undefined behavior when calling vfs_posix_file_ioctl with
MP_STREAM_CLOSE as request because that casts away the constness and
assigns -1 to the object's fd member.
Fixes issue #12670.
Signed-off-by: stijn <stijn@ignitron.net>
Diffstat (limited to 'examples/usercmodule/cppexample/example.cpp')
0 files changed, 0 insertions, 0 deletions