aboutsummaryrefslogtreecommitdiff
path: root/src/lib9pclient
Commit message (Collapse)AuthorAgeFilesLines
* fspread: fix buffer overflowGünther Noack2021-04-051-4/+9
| | | | | | | | | | | | | | | Without this fix, fspread is trusting the server to return as much data as requested, or less. If a server responds with more data though, fspread writes beyond the bounds of the buffer to fill, which is passed in by the caller. It depends on the caller of fspread() where that buffer is, so there are various possible attack vectors. In the Plan9 kernel, I found this implemented in devmnt.c, where overly large responses are truncated to the size requested before copying, so I assume that this strategy works here too. This also affects fsread() and fsreadn(), which are based on fspread().
* Trivial changes: whitespace and modes.Dan Cross2020-01-1010-13/+7
| | | | | | | | | 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>
* delete 9P2000.uRuss Cox2010-12-075-16/+13
| | | | | | | thanks to Erik Quanstrom R=rsc http://codereview.appspot.com/3469042
* lib9pclient: clear tx.extension for 9P2000.uRuss Cox2008-07-041-0/+1
|
* lib9pclient: remove debugging printRuss Cox2008-07-041-1/+0
|
* lib9pclient: one more dotu (Michael Kaminsky)Russ Cox2008-07-041-1/+1
|
* lib9pclient: add support for 9P2000.uRuss Cox2008-07-045-12/+17
|
* more functionsrsc2006-07-238-26/+57
|
* remove debug printrsc2006-06-261-1/+0
|
* set errstr for bad dir contentsrsc2006-06-261-1/+4
|
* remove print statementrsc2006-06-261-1/+0
|
* missed this toorsc2006-05-271-1/+1
|
* missed this toorsc2006-05-271-0/+1
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-1/+1
|
* add printrsc2006-02-082-0/+68
|
* addrsc2006-01-272-0/+37
|
* morersc2006-01-274-1/+54
|
* better error messagesrsc2005-07-132-9/+21
|
* do not add to void*rsc2005-03-151-1/+1
|
* open: preserve error on failed openrsc2005-03-012-1/+4
| | | | write: handle offset correctly for fswrite
* add _fsunmount; do version in fsinit; add nsinit; add chatty9pclientrsc2005-02-112-19/+41
|
* add authrsc2005-02-084-1/+18
|
* better offset handlingrsc2005-01-281-0/+5
|
* do not close -1rsc2005-01-191-1/+2
|
* add fsseekrsc2005-01-182-0/+47
|
* update pathsrsc2005-01-141-1/+1
|
* os x changesrsc2005-01-111-2/+0
|
* lib9pclient is the new libfsrsc2005-01-0416-0/+1033