summaryrefslogtreecommitdiff
path: root/py/qstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-12-10 15:57:03 +1100
committerDamien George <damien.p.george@gmail.com>2018-12-10 16:01:05 +1100
commit55830dd9bf4fee87c0a6d3f38c51614fea0eb483 (patch)
tree766fae27432ad40d39cb3a818f01d1b084b73e66 /py/qstr.c
parentbad4e15da5897fb61098ae39d9aebaed31a57fc3 (diff)
py/objexcept: Make sure mp_obj_new_exception_msg doesn't copy/format msg
mp_obj_new_exception_msg() assumes that the message passed to it is in ROM and so can use its data directly to create the string object for the argument of the exception, saving RAM. At the same time, this approach also makes sure that there is no attempt to format the message with printf, which could lead to faults if the message contained % characters. Fixes issue #3004.
Diffstat (limited to 'py/qstr.c')
0 files changed, 0 insertions, 0 deletions