-
Notifications
You must be signed in to change notification settings - Fork 241
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
Use safer and simpler string copy functions. (v2) #603
Conversation
49fcdcf
to
5e8b655
Compare
Rebased to master. |
I didn't check I'll update this PR to cover that. |
Hi! I've been working on a document that describes correct use of string copying functions. I'll take the document into consideration for this PR. Cheers, Alex
|
Do you have a git branch/pr where we can comment? |
I've done a lot of updates. Next version I send to the mailing list (maybe tomorrow), I'll add you to the CC. Thanks! |
5e8b655
to
28d9caf
Compare
Rebased to master |
It signals that a function parameter is a string. Suggested-by: Serge Hallyn <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
These function consume a source string. Document that. There's no way to mark that they also produce a string in dst, though. That will be up to the static analyzer to guess. Signed-off-by: Alejandro Colomar <[email protected]>
28d9caf
to
3bfd1c0
Compare
This is a continuation of #569.
For auditability, I'm initially opening it at commit 49fcdcf.
Now at least I can mark it as a draft :)