diff options
Diffstat (limited to 'www/hacking.html.in')
-rw-r--r-- | www/hacking.html.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/www/hacking.html.in b/www/hacking.html.in index 06852784..19ee6d78 100644 --- a/www/hacking.html.in +++ b/www/hacking.html.in @@ -489,6 +489,9 @@ to be embedding a PATH_MAX-sized buffer in the gpsd.h structure.</p> <p>Don't undo this by using malloc/free in a driver or anywhere else.</p> +<p>Please note that this restriction includes indirect callers of malloc +like strdup.</p> + <h2 id="sizeof">Avoid use of sizeof(<int type>)!</h2> <p>It's tempting to extract parts of packets with by using a loop of the |