Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/lib A buffer slipped though the net... E...



details:   https://anonhg.NetBSD.org/src/rev/262e1c9d5d84
branches:  trunk
changeset: 542749:262e1c9d5d84
user:      dsl <dsl%NetBSD.org@localhost>
date:      Wed Feb 05 21:48:53 2003 +0000

description:
A buffer slipped though the net... Ensure offset < 64k.
(approved by christos)

diffstat:

 sys/arch/i386/stand/lib/biosmemx.S |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 36aa84b4b05c -r 262e1c9d5d84 sys/arch/i386/stand/lib/biosmemx.S
--- a/sys/arch/i386/stand/lib/biosmemx.S        Wed Feb 05 21:41:51 2003 +0000
+++ b/sys/arch/i386/stand/lib/biosmemx.S        Wed Feb 05 21:48:53 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: biosmemx.S,v 1.3 2003/02/01 14:48:18 dsl Exp $ */
+/*     $NetBSD: biosmemx.S,v 1.4 2003/02/05 21:48:53 dsl Exp $ */
 
 /*
  * Copyright (c) 1997, 1999
@@ -108,6 +108,14 @@
        call    _C_LABEL(prot_to_real)
        .code16
 
+       push    %di
+       shrl    $4, %edi
+       mov     %ds, %ax
+       add     %di, %ax
+       mov     %ax, %ds
+       pop     %di
+       and     $0xf, %di
+
        movw    $0xe820, %ax
        int     $0x15
 



Home | Main Index | Thread Index | Old Index