Fix up some violations of US-CERT DCL37.  (closes #235)
perl: use smalloc() instead of malloc().  (ref #237)
Merge remote-tracking branch 'upstream/master'