From d4d6e6eca95e931383b102824d8971e3447f2348 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Mon, 30 Sep 2013 03:05:08 +0000 Subject: [PATCH] [SOFT386] Fix limit check. svn path=/branches/ntvdm/; revision=60467 --- lib/soft386/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/soft386/common.c b/lib/soft386/common.c index f8127aa8060..492eebd203c 100644 --- a/lib/soft386/common.c +++ b/lib/soft386/common.c @@ -50,7 +50,7 @@ Soft386ReadMemory(PSOFT386_STATE State, /* Get the cached descriptor */ CachedDescriptor = &State->SegmentRegs[SegmentReg]; - if ((Offset + Size) >= CachedDescriptor->Limit) + if ((Offset + Size) > CachedDescriptor->Limit) { /* Read beyond limit */ Soft386Exception(State, SOFT386_EXCEPTION_GP);