[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(<int type>)!</h2>
<p>It's tempting to extract parts of packets with by using a loop of the
--
2.7.2
- [gpsd-dev] [PATCH 1/2] hacking: mention signing off on patches and why it's a good thing., Beat Bolli, 2016/03/28
- [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section.,
Beat Bolli <=
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Paul Fertser, 2016/03/28
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Eric S. Raymond, 2016/03/28
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Fred Wright, 2016/03/30
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Eric S. Raymond, 2016/03/30
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Sanjeev Gupta, 2016/03/31
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Eric S. Raymond, 2016/03/31
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Paul Fertser, 2016/03/31
- Re: [gpsd-dev] [PATCH 2/2] hacking: mention strdup in the no-malloc section., Sanjeev Gupta, 2016/03/31
Re: [gpsd-dev] [PATCH 1/2] hacking: mention signing off on patches and why it's a good thing., Paul Fertser, 2016/03/28