URI:
       textra assertion, fix leak in vtread - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit c5eb686096c8e5fef13230867ea7ce494b0376d7
   DIR parent d3232caf63ede13732594f455f11909000817c9a
  HTML Author: rsc <devnull@localhost>
       Date:   Wed, 16 Jun 2004 03:12:39 +0000
       
       extra assertion, fix leak in vtread
       
       Diffstat:
         M src/libventi/client.c               |       1 +
         M src/libventi/file.c                 |       2 ++
       
       2 files changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/src/libventi/client.c b/src/libventi/client.c
       t@@ -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;
        }
        
   DIR diff --git a/src/libventi/file.c b/src/libventi/file.c
       t@@ -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);