Skip to content

Prevent buffer overflow, fixes #17#18

Merged
mach-kernel merged 2 commits intomach-kernel:masterfrom
sicklittlemonkey:master
Apr 1, 2018
Merged

Prevent buffer overflow, fixes #17#18
mach-kernel merged 2 commits intomach-kernel:masterfrom
sicklittlemonkey:master

Conversation

@sicklittlemonkey
Copy link
Copy Markdown
Contributor

Use calloc/free instead of strdup.

Use calloc/free instead of strdup.
A string literal is an array, which already has an address.
@sicklittlemonkey
Copy link
Copy Markdown
Contributor Author

sicklittlemonkey commented Apr 1, 2018

I can add a VS solution and project to this (or another) commit if you like, and a .gitignore file - just to be safe.

@mach-kernel
Copy link
Copy Markdown
Owner

Looks good! I would prefer to keep VS solution stuff out of the project, though. Merging this as-is and will package a new release at some point today/tomorrow.

@mach-kernel mach-kernel merged commit d087483 into mach-kernel:master Apr 1, 2018
sicklittlemonkey added a commit to sicklittlemonkey/cadius that referenced this pull request Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants