Commits
- Commit:
d20f7b514c649c94f9679f66792a95037466b7c1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-web: avoid an (im)possible write out-of-bounds in buf_write
spotted while bringing syncparty' bufio.[ch] in sync; if the requested
len could be bigger than buf->len plus the buf_grow() increment,
so we have to iterate. This is currently impossible since we're
usign buf_write() only to add one byte.
- Commit:
2216d3fb02772c0d13430959e9545ce4749bd4ce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-web: parse POST data in bufio' rbuf
Add a proper upper limit (4096 seems enough for now) and safely
NUL-terminate the rbuf.
The idea is to later drop the clt->buf static buffer and allocate it on
demand only when we need to do (http) chunking.
- Commit:
cc89e101c87c7ed5a85ba73d65148cdc876c1b02
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-web: first round of portability tweaks
We still need an implementation of SHA1Init() & co, which on linux
is not in libc (but is available with the same APIs in libmd.)
- Commit:
d48ffc6605b4a30e0e4356cf2d53383c2a223067
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-web: tweak bufio APIs for future HTTP usage
add bufio_free() to free the bufio without re-initialization, add
support for writing HTTP-style chunks and add ability to extract data
from the read buffer via the bufio_* layer instead of peeking at the
internals.
- Commit:
dca29a891c8adedd8ab5f84d8df83a07a46573db
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-web: remove the TLS handling from bufio
- Commit:
b8a11905ab2402519db36742b5eb16646ad0347b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-web: import bufio.[ch] from syncparty