Discussion:
dpid patches
123
2012-05-26 19:05:28 UTC
Permalink
One patch for using random instead of rand. [1]

Reordered headers and removed old comments (what is ckt_write?). umask
is actually in sys/stat.h and not in unistd.h

Also removed expired TODO item about dpi_service.[c|h].

[1] https://www.securecoding.cert.org/confluence/display/seccode/MSC30-C.+Do+not+use+the+rand%28%29+function+for+generating+pseudorandom+numbers
Jorge Arellano Cid
2012-05-26 20:18:26 UTC
Permalink
Post by 123
One patch for using random instead of rand. [1]
Ack.
Post by 123
Reordered headers and removed old comments (what is ckt_write?). umask
is actually in sys/stat.h and not in unistd.h
Dillo compiles in several OSes/platforms, which sometimes have
declarations in different files. This is the to-be-tested point.
Post by 123
(what is ckt_write?).
ckd_write()

an EINTR-protected write() (see dpid/dpid_common.c).
Post by 123
Also removed expired TODO item about dpi_service.[c|h].
Ack.
--
Cheers
Jorge.-
Joerg Sonnenberger
2012-05-26 21:54:02 UTC
Permalink
Post by 123
One patch for using random instead of rand. [1]
Guessing the intention here, I would recomment to use arc4random on
systems that have it. time(0) should likely be spelled as time(NULL).
Post by 123
Reordered headers and removed old comments (what is ckt_write?). umask
is actually in sys/stat.h and not in unistd.h
umask in sys/stat.h is correct.

Joerg

Loading...