Commits
- Commit:
b9424f640a0493359fd2af7c670c5a4ced334e6b
- From:
- Fazlul Shahriar <fshahriar@gmail.com>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
plumber: fix EOF detection on writes to rules file (#257)
Instead of checking Fcall.data==nil, check Fcall.count==0.
The former check always fails after `gcc -O2` optimizations
(gcc version 8.3.0).
Also fix an out-of-bound read detected by valgrind:
```
==31162== Invalid read of size 1
==31162== at 0x11005E: morerules (rules.c:739)
==31162== by 0x110254: writerules (rules.c:775)
==31162== by 0x10D2FE: fsyswrite (fsys.c:848)
==31162== by 0x10C304: fsysproc (fsys.c:248)
==31162== by 0x112E8C: threadstart (thread.c:96)
==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so)
==31162== Address 0x4ea984a is 0 bytes after a block of size 250 alloc'd
==31162== at 0x483AD7B: realloc (vg_replace_malloc.c:826)
==31162== by 0x1196F3: p9realloc (malloc.c:53)
==31162== by 0x10BDFD: erealloc (plumber.c:124)
==31162== by 0x10FCD9: concat (rules.c:642)
==31162== by 0x10FCD9: concat (rules.c:635)
==31162== by 0x110230: writerules (rules.c:773)
==31162== by 0x10D2FE: fsyswrite (fsys.c:848)
==31162== by 0x10C304: fsysproc (fsys.c:248)
==31162== by 0x112E8C: threadstart (thread.c:96)
==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so)
```
Fixes #256
- Commit:
c149b06f2ef46f4be99be22c6884ca61c7e2b3e3
- From:
- Russ Cox <rsc@swtch.com>
- Date:
plumb: remove debugging print
R=rsc
http://codereview.appspot.com/6210059
- Commit:
3bd56b04a8bab7208494fd7dc74af5528fc41604
- From:
- rsc <devnull@localhost>
- Date:
NetBSD-macppc ctype needs uchars.
- Commit:
4de03b544c82f36e172d7fc395276c12ecda5b7c
- From:
- rsc <devnull@localhost>
- Date:
add $plan9 variable
- Commit:
8ad517944e46710ab832350c0dc3fc4e9239f7e2
- From:
- rsc <devnull@localhost>
- Date:
Today's changes.
More changes.
- Commit:
15680d56a6c6e15921d958aa6006825c2cd20bf8
- From:
- rsc <devnull@localhost>
- Date:
Amazingly picky bug fixes from Valgrind.
- Commit:
c91bd3283a44946fd420ce68c43580aa0d327546
- From:
- rsc <devnull@localhost>
- Date:
Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.
Add debugging to fdwait.
Rewrite getcallerpc on PowerMac to be correct.
- Commit:
32f69c36e0eec1227934bbd34854bfebd88686f2
- From:
- rsc <devnull@localhost>
- Date:
Add support for user-level 9P servers/clients and various bug fixes to go with them.
- Commit:
b8c14089d8f4be73a908f82f62fce80ed2c14a8d
- From:
- rsc <devnull@localhost>
- Date:
Plan 9 version, nothing tweaked yet.