[Nasm-bugs] [Bug 3392495] New: Undetected "je short literal-number" byte overflow
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Sat Jun 30 15:22:13 PDT 2018
https://bugzilla.nasm.us/show_bug.cgi?id=3392495
Bug ID: 3392495
Summary: Undetected "je short literal-number" byte overflow
Product: NASM
Version: 2.13.xx
Hardware: Other x86
OS: Other Unix
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: sethsimon at sdf.org
CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: From OS distribution
~$ nasm --version
NASM version 2.13.03 compiled on Mar 27 2018
~$ cat test.asm
je short 0x300
~$ nasm -f bin -o test.com test.asm
~$ ndisasm test.com
00000000 74FE jz 0x0
On the other hand, if a label is used, NASM detects the error:
~$ cat test.asm
je short foo
times 0x300 - 2 db 0
foo:
~$ nasm -f bin -o test.com test.asm
test.asm:1: error: short jump is out of range
test.asm:1: warning: byte data exceeds bounds [-w+number-overflow]
This may or may not be related to #3392273.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list