Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | |||||
2012-10-21 | fix clang warnings reported by Tuncer Ayaz | Russ Cox | 1 | -1/+1 | |
R=rsc http://codereview.appspot.com/6744054 | |||||
2011-10-05 | libsec: fix dsagen 64-bit bug | Russ Cox | 1 | -1/+1 | |
2010-03-11 | probably_prime: run more than one Miller-Rabin round | Russ Cox | 1 | -12/+17 | |
R=rsc http://codereview.appspot.com/462041 | |||||
2010-03-11 | libsec: update primetest to use mpfmt | Russ Cox | 1 | -1/+1 | |
R=rsc http://codereview.appspot.com/464041 | |||||
2008-03-06 | libsec: use intptr to silence 64-bit warning (Michael Teichgräber) | Russ Cox | 1 | -1/+1 | |
2006-04-01 | Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. | rsc | 25 | -220/+220 | |
2005-02-13 | add dsa x509 | rsc | 1 | -0/+74 | |
2005-02-11 | new allocrpc interface | rsc | 1 | -6/+1 | |
2004-12-28 | more little compile fixes | rsc | 1 | -2/+2 | |
2004-12-27 | silence various warnings | rsc | 1 | -0/+4 | |
2004-12-26 | add portdate | rsc | 1 | -0/+56 | |
2004-12-26 | changes from plan 9. some clean-up. | rsc | 5 | -20/+91 | |
2004-04-21 | Libsec doesn't compile without a reduce script, either. | wkj | 1 | -0/+13 | |
2004-04-21 | more tomfoolery. | rsc | 1 | -1/+0 | |
i bet mk can't read the mac os or sun os archives. | |||||
2004-04-21 | make scripts work with more shells, | rsc | 1 | -1/+3 | |
use current variable names. | |||||
2004-04-19 | clean up when finished. | rsc | 1 | -1/+0 | |
don't set PLAN9 don't set PLAN9 | |||||
2004-03-26 | SunOS can rot in hell. | rsc | 1 | -1/+1 | |
2004-03-21 | Add most of libsec. | rsc | 47 | -0/+9625 | |
2004-03-21 | Small tweaks | rsc | 5 | -28/+45 | |
Lots of new code imported. | |||||
2003-11-25 | More tweaks on Linux and Solaris. | rsc | 1 | -1/+1 | |
2003-11-23 | Make things build on FreeBSD again. | rsc | 2 | -1/+2 | |
2003-11-23 | add libsec | rsc | 11 | -0/+2906 | |