Commit graph

45 commits

Author SHA1 Message Date
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
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>
2020-01-10 14:54:30 +00:00
Kare Nuorteva
b3336e5cbb all: remove .cvsignore files
Rename following .cvsignore files to .gitkeep since they are
required by the build (directories must exist before build):
	- bin/fossil/.gitkeep
	- bin/fs/.gitkeep
	- bin/venti/.gitkeep

Change-Id: I9c2865058480cffb3a4613f25e2eca1f7e5578c0
2017-09-14 17:25:17 +02:00
Aram Hăvărneanu
3f1c876e14 all: linux/arm64 port
Really trivial port.

Change-Id: Ib2e3ad48df555ca4bd9339ddf79a832be895bd95
Reviewed-on: https://plan9port-review.googlesource.com/1030
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:34:38 +00:00
Aram Hăvărneanu
37d81a2915 all: linux/mips port
Change-Id: I0af67bc44c7bb62a8e5a47eac597367f521f1c11
Reviewed-on: https://plan9port-review.googlesource.com/1210
Reviewed-by: Russ Cox <rsc@google.com>
2015-06-03 15:34:06 +00:00
Xi Wang
8a2a5b8f25 libsec: avoid undefined C
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
2013-03-19 14:35:16 -04:00
Russ Cox
0cfb376070 fix clang warnings reported by Tuncer Ayaz
R=rsc
http://codereview.appspot.com/6744054
2012-10-21 11:25:08 -04:00
Russ Cox
c38ef9e7b6 libsec: fix dsagen 64-bit bug 2011-10-05 16:23:01 -04:00
Richard Miller
9cf92718e9 arm: build fixes
Get p9p to build cleanly for ARM - based on suggestions from rsc and eekee, plus a final tweak from me.  Tested (a bit) on sheevaplug (ubuntu jaunty), Nokia N800 (maemo 4) and Nokia N900 (maemo 5).

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4524056
2011-05-18 13:20:56 -04:00
Russ Cox
af0dea4531 SunOS fixes (thanks Aram Hăvărneanu)
R=rsc, rsc
http://codereview.appspot.com/4271084
2011-05-17 18:48:42 -04:00
Russ Cox
1619f52cbc probably_prime: run more than one Miller-Rabin round
R=rsc
http://codereview.appspot.com/462041
2010-03-11 18:04:42 -08:00
Russ Cox
a1afc8529d libsec: update primetest to use mpfmt
R=rsc
http://codereview.appspot.com/464041
2010-03-11 18:04:12 -08:00
Russ Cox
350f4d3ede libsec: use intptr to silence 64-bit warning (Michael Teichgräber) 2008-03-06 15:14:03 -05:00
rsc
54b59fd17c apple 2006-04-21 03:55:13 +00:00
rsc
a2000ee73e use gcc because cpp sucks 2006-04-21 03:43:54 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
c0811e687d sparc 2006-02-09 08:17:49 +00:00
rsc
6a4599d779 change labels to get better function boundaries 2005-05-12 14:03:48 +00:00
rsc
74fc94d47e add dsa x509 2005-02-13 18:35:11 +00:00
rsc
2709e6e368 new allocrpc interface 2005-02-11 16:44:33 +00:00
rsc
6987199d12 continue x86-64 2005-01-19 04:05:19 +00:00
rsc
78e51a8c66 checkpoint 2005-01-14 03:45:44 +00:00
rsc
b8f742db85 os x changes 2005-01-11 17:43:53 +00:00
rsc
22c7ebffda more little compile fixes 2004-12-28 01:45:05 +00:00
rsc
73bfbacb24 silence various warnings 2004-12-27 19:13:31 +00:00
rsc
52e73e955b add portdate 2004-12-26 23:59:30 +00:00
rsc
1b1434ebce changes from plan 9. some clean-up. 2004-12-26 23:59:10 +00:00
rsc
b081423638 Empty changelog 2004-05-14 23:13:34 +00:00
rsc
6a64e6c983 asdf 2004-05-14 23:13:15 +00:00
rsc
983990c806 C
little bugs
.
wq
VS: ----------------------------------------------------------------------
2004-05-14 20:19:53 +00:00
rsc
2f2df5e02e Ditto. 2004-05-09 16:12:46 +00:00
rsc
2f05c0e86d It's bad form to access data *below* the stack pointer. 2004-05-09 16:10:31 +00:00
wkj
115d4c0afc Ignore unknown pragmas.
Be less verbose when allocating uprocs.
Don't drop core dump turds all over the place when x11 goes away.
2004-05-03 17:26:17 +00:00
wkj
7025271a71 Libsec doesn't compile without a reduce script, either. 2004-04-21 17:52:08 +00:00
rsc
6b17c8f11b more tomfoolery.
i bet mk can't read the mac os or sun os archives.
2004-04-21 06:53:59 +00:00
rsc
7ac9b0e140 make scripts work with more shells,
use current variable names.
2004-04-21 05:49:52 +00:00
rsc
0d6c3c2408 ditto 2004-04-21 05:43:24 +00:00
rsc
a25e7f2fd5 Rename the files so that we can run them through cpp. 2004-04-21 05:40:32 +00:00
wkj
ae12b87972 MD5 and SHA1 in transliterated to x86 assembler with C preprocessor goo.
Thanks to Brendan Connell for putting up with this nonsense.
2004-04-21 04:52:27 +00:00
rsc
1b135a7805 clean up when finished.
don't set PLAN9
don't set PLAN9
2004-04-19 23:04:36 +00:00
rsc
be22ae2d07 SunOS can rot in hell. 2004-03-26 01:59:35 +00:00
rsc
0fc65b37a1 Add most of libsec. 2004-03-21 14:04:56 +00:00
rsc
2277c5d7bb Small tweaks
Lots of new code imported.
2004-03-21 04:33:13 +00:00
rsc
64bcfff3a1 More tweaks on Linux and Solaris. 2003-11-25 02:11:11 +00:00
rsc
478ee9636f Make things build on FreeBSD again. 2003-11-23 20:04:53 +00:00
rsc
db6608bd81 add libsec 2003-11-23 18:21:42 +00:00