summaryrefslogtreecommitdiff
path: root/pod/perlhack.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-03-26 15:50:11 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-03-27 06:17:25 +0000
commitad7244db27635ed088fc05a8a69e99bbb19c36d6 (patch)
treea1b5453552fe78cc237f814fff2fdbc5a1403ce1 /pod/perlhack.pod
parentc8fb9d349396af98577278122fee7357e4ce610e (diff)
downloadperl-ad7244db27635ed088fc05a8a69e99bbb19c36d6.tar.gz
util.c [PATCH] perlhack.pod (Was: Re: threads crashes in Tru64)
Message-ID: <46085C33.1030601@iki.fi> p4raw-id: //depot/perl@30771
Diffstat (limited to 'pod/perlhack.pod')
-rw-r--r--pod/perlhack.pod16
1 files changed, 16 insertions, 0 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index 05e8751369..b176b83721 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -2844,6 +2844,22 @@ But in any case, try to keep the features and operating systems separate.
=back
+=head2 Problematic System Interfaces
+
+=over 4
+
+=item *
+
+malloc(0), realloc(0), calloc(0, 0) are nonportable. To be portable
+allocate at least one byte. (In general you should rarely need to
+work at this low level, but instead use the various malloc wrappers.)
+
+=item *
+
+snprintf() - the return type is unportable. Use my_snprintf() instead.
+
+=back
+
=head2 Security problems
Last but not least, here are various tips for safer coding.