Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix buffer overflow. #206
Merged
Fix buffer overflow. #206
Conversation
In C strings are 0-terminated, meaning that after the call to sprintf the char contains { 'a', 'b', '\0' }. This is an array of 3 chars we only reserver memory for 2.
vvhh2002
pushed a commit
to vvhh2002/M5Stack
that referenced
this pull request
Jun 24, 2020
* master: update weight and ENVII unit exmaple add SIM800L FactoryTest Rename example files (m5stack#217) rename some example file add module example comment add Unit exmaple sketch comment rename some example file Set GPIO15 to OD mode in m5stack.cpp Update lib to V0.3.0 (m5stack#215) Update lib to V0.3.0 Add some example and delete repeat file (m5stack#211) update: M5.Speaker.setVolume works with M5.Speaker.tone . (m5stack#205) Fix buffer overflow. (m5stack#206) Lorawan - fix for loop (m5stack#207) Add AcSocket example Add Face example Add mpu6886 fifo read api, Update read freq to 500HZ Add BaseX example
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Bjoerns-TB commentedApr 6, 2020
In C strings are 0-terminated, meaning that after the call to sprintf the char contains { 'a', 'b', '\0' }. This is an array of 3 chars we only reserver memory for 2.