dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/image pecoff_loader.c,1.15,1.16


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/image pecoff_loader.c,1.15,1.16
Date: Sun, 17 Aug 2003 18:40:13 -0400

Update of /cvsroot/dotgnu-pnet/pnet/image
In directory subversions:/tmp/cvs-serv20154/image

Modified Files:
        pecoff_loader.c 
Log Message:


MemoryRead: reversed test, causing segv (found by Chris Smith - bug #4807).


Index: pecoff_loader.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/image/pecoff_loader.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** pecoff_loader.c     7 Jul 2003 12:44:50 -0000       1.15
--- pecoff_loader.c     17 Aug 2003 22:40:11 -0000      1.16
***************
*** 60,64 ****
  static int MemoryRead(ILInputContext *ctx, void *buf, unsigned len)
  {
!       if(len < ctx->bufLen)
        {
                len = (unsigned)(ctx->bufLen);
--- 60,64 ----
  static int MemoryRead(ILInputContext *ctx, void *buf, unsigned len)
  {
!       if(ctx->bufLen < len)
        {
                len = (unsigned)(ctx->bufLen);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]