gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section.


From: Beat Bolli
Subject: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section.
Date: Mon, 28 Mar 2016 12:18:58 +0200

Signed-off-by: Beat Bolli <address@hidden>
---
 www/hacking.html.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/hacking.html.in b/www/hacking.html.in
index 0685278..19ee6d7 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(&lt;int type&gt;)!</h2>
 
 <p>It's tempting to extract parts of packets with by using a loop of the
-- 
2.7.2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]