aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libventi/client.c1
-rw-r--r--src/libventi/file.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libventi/client.c b/src/libventi/client.c
index 5d51cc7d..a58b2089 100644
--- a/src/libventi/client.c
+++ b/src/libventi/client.c
@@ -98,6 +98,7 @@ vtread(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
nn = packetsize(p);
if(packetconsume(p, buf, nn) < 0)
abort();
+ packetfree(p);
return nn;
}
diff --git a/src/libventi/file.c b/src/libventi/file.c
index 655b3891..50e99f3c 100644
--- a/src/libventi/file.c
+++ b/src/libventi/file.c
@@ -190,6 +190,8 @@ vtfilecreate(VtFile *r, int psize, int dsize, int dir)
u32int offset;
assert(ISLOCKED(r));
+ assert(psize <= VtMaxLumpSize);
+ assert(dsize <= VtMaxLumpSize);
if(!r->dir){
werrstr(ENotDir);