★ wanayoo — archive 1999 https://github.com/m5stack/M5Stack/pull/206Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix buffer overflow. #206

Merged
merged 1 commit into from Apr 8, 2020
Merged

Conversation

@Bjoerns-TB
Copy link
Contributor

Bjoerns-TB commented Apr 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.

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.
@EeeeBin EeeeBin merged commit 7af7b6f into m5stack:master Apr 8, 2020
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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.