thorkill/eresi

Bugs in real-mode / protected-mode automatic detection

Closed this issue · 1 comments

There is a strange bug in the handling of real mode detection:

jfv@paulo-laptop:~/eresi/kedbg$ ./kedbg32 :8832 ./bios
Command not supported

[*] No configuration in ~/.eresirc

kedbg32: handlers.c:20: kedbg_isrealmodewmon: Assertion `strlen(ret) < sizeof(reply)' failed.
Aborted (core dumped)
jfv@paulo-laptop:~/eresi/kedbg$


Ticket: 108 Reported by: may on Sun Dec 28 18:48:06 2008
attachment: kedbg-bug.wirshark.txt/Wireshark log while the bug is happening

may bt [[BR]]
#0 0xb7f3d410 in __kernel_vsyscall () [[BR]]
#1 0xb7b86085 in raise () from /lib/tls/i686/cmov/libc.so.6 [[BR]]
#2 0xb7b87a01 in abort () from /lib/tls/i686/cmov/libc.so.6 [[BR]]
#3 0xb7b7f10e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6 [[BR]]
#4 0x0804d533 in kedbg_isrealmodewmon () at handlers.c:20 [[BR]]
#5 0x0804db8a in kedbg_isrealmode () at handlers.c:101 [[BR]]
#6 0x0804d22c in kedbg_main (argc=3, argv=0xbff442b4) at main.c:290 [[BR]]
#7 0x0804d455 in main (argc=3, argv=0xbff442b4) at main.c:360 [BR] frame 4 [[BR]]
#4 0x0804d533 in kedbg_isrealmodewmon () at handlers.c:20 [[BR]]
20 ASSERT(strlen(ret) < sizeof(reply)); [BR] print ret [[BR]]
$1 = 0x817d6c8 "O5468697320636f6d6d616e6420697320756e696d706c656d656e7465642e20" [BR] [[BR]]