Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-01-10 | Trivial changes: whitespace and modes. | Dan Cross | 1 | -1/+1 | |
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net> | |||||
2013-03-19 | libsec: avoid undefined C | Xi Wang | 1 | -2/+1 | |
gcc compiles `p + length < p' into 'length < 0' since pointer overflow is undefined behavior in C. This breaks the check against a large `length'. Use `length > pend - p' instead. There's no need to check `length < 0' since `length' is from length_decode() and should be non-negative. === Try the simplified code. void bar(void); void foo(unsigned char *p, int length) { if (p + length < p) bar(); } $ gcc -S -o - t.c -O2 ... foo: .LFB0: .cfi_startproc testl %esi, %esi js .L4 rep ret .L4: jmp bar .cfi_endproc Clearly `p' is not used at all. R=rsc CC=plan9port.codebot https://codereview.appspot.com/7231069 | |||||
2006-04-01 | Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. | rsc | 1 | -2/+2 | |
2005-02-13 | add dsa x509 | rsc | 1 | -0/+74 | |
2004-12-26 | changes from plan 9. some clean-up. | rsc | 1 | -8/+12 | |
2004-03-26 | SunOS can rot in hell. | rsc | 1 | -1/+1 | |
2004-03-21 | Add most of libsec. | rsc | 1 | -0/+2524 | |