summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2017-04-02 13:12:03 +0200
committerTobias Stoeckmann <tobias@stoeckmann.org>2017-04-02 13:12:03 +0200
commitdcd9735a236b6557b6254569acd9c297913d5f7b (patch)
tree7f11e24097caf9400da4206c24d1a393de223672 /CONTRIBUTING.md
parentde76be7ab44cb49a75be0322a345e07771e6556d (diff)
Fixed out of boundary write on long lines.
The terminating nul character ('\0') could be written outside the boundary of the buffer which is used to read characters. If "sizeof(buffer)" characters are read, the resulting value must not be used as index, because that's an off by one. Read sizeof(buffer)-1 bytes instead. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions