mirror of
https://github.com/curl/curl.git
synced 2026-08-03 06:30:34 +03:00
tidy-up: miscellaneous
- badwords: replace stray synonyms with 'null-terminator'. - tests/FILEFORMAT.md: tidy up feature descriptions. - printf: replace stray `%i` masks with `%d` for consistency. - pytest: add comments for empty excepts to try silencing GitHub CodeQL warnings. - tool1394, unit1675: merge nested `if`s. - dnscache: fix typo in comment. - fix whitespace, indent and newlines. Closes #21921
This commit is contained in:
parent
849317ff5c
commit
952b04474c
31 changed files with 90 additions and 90 deletions
|
|
@ -156,14 +156,14 @@ Maybe use of `realloc()` should rather use the dynbuf functions?
|
|||
|
||||
Do not allow new code that grows buffers without using dynbuf.
|
||||
|
||||
Use of C functions that rely on a terminating zero must only be used on data
|
||||
that really do have a null-terminating zero.
|
||||
Use of C functions that rely on a null-terminator must only be used on data
|
||||
that really do have a null-terminator (`\0` byte).
|
||||
|
||||
## Dangerous "data styles"
|
||||
|
||||
Make extra precautions and verify that memory buffers that need a terminating
|
||||
zero always have exactly that. Buffers *without* a null-terminator must not be
|
||||
used as input to string functions.
|
||||
Make extra precautions and verify that memory buffers that need
|
||||
null-terminator always have exactly that. Buffers *without* a null-terminator
|
||||
must not be used as input to string functions.
|
||||
|
||||
# Commit messages
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue