summaryrefslogtreecommitdiff
path: root/lib/cmap/bbmap
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-03-01 01:43:55 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-03-01 01:43:55 +0100
commit0aac600fb3b659b5b9a2a8aaefb821774cf38bd2 (patch)
tree07847b766b6462f8f5018a36008cb09a45c7f99c /lib/cmap/bbmap
parent967b1248f82e5f64eab4dbf45898a37851b71fa2 (diff)
downloadplan9front-0aac600fb3b659b5b9a2a8aaefb821774cf38bd2.tar.xz
lib9p: fix zero msize abort() due to unknown version (thanks kivik)
kivik wrote: I've found a nasty bug in lib9p handling of Tversion messages, where an invalid version string in the request leads to servers abort()ing the spaceship. To reproduce: ; ramfs -S ram ; aux/9pcon /srv/ram Tversion ~0 DIE The issue lies in sversion() where in case an invalid version string is received we respond right away with ofcall.version="unknown"; however, we fail to set the ofcall.msize, which at this point is cleared to 0. This causes the convS2M call in respond() to fail and abort being called.
Diffstat (limited to 'lib/cmap/bbmap')
0 files changed, 0 insertions, 0 deletions