Improve protection around strncpy and memcpy calls
authorDavid Goulet <david.goulet@polymtl.ca>
Wed, 3 Aug 2011 21:11:44 +0000 (17:11 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Wed, 3 Aug 2011 21:11:44 +0000 (17:11 -0400)
commiteb3544535ec698874b2e856c520e3ebf36e8fe93
treedba70d5d497e6a396b8e3a0435a0af48f7a47e9d
parent2a71efd5ae4e4bc9fe52154782d4a0a8f867d55a
Improve protection around strncpy and memcpy calls

Add copy_string which check for null pointer and add the null terminated
byte by default.

All pointer pass to memcpy are checked for null value.

All lttng_domain pointer are checked also for null value.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
liblttngctl/liblttngctl.c
This page took 0.025396 seconds and 4 git commands to generate.