[Nasm-bugs] [Bug 3392678] New: "int label" does not cause error, even for label values > 255

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Fri Jun 5 12:26:55 PDT 2020


            Bug ID: 3392678
           Summary: "int label" does not cause error, even for label
                    values > 255
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: minor
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pushbx at ulukai.org
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

In the following test case, there are two "int" instructions. One uses a label,
the other an immediate number. Only the immediate manages to generate a
warning. I would like for the label to also generate a warning. I happened upon
this lack of a warning by accident when I meant to change an "int 67h"
instruction to a call, but only had entered the call destination label,
forgetting to change the instruction.

$ cat test.asm

        times 1024 db 0
        int label
        int 1024
$ nasm -v
NASM version 2.15rc5 compiled on Jun  5 2020
$ nasm test.asm -l /dev/stderr
     2 00000000 00<rep 400h>                    times 1024 db 0
     3                                  label:
     4 00000400 CD[00]                          int label
test.asm:5: warning: byte data exceeds bounds [-w+number-overflow]
     5 00000402 CD00                            int 1024
     5          ******************       warning: byte data exceeds bounds

You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.

More information about the Nasm-bugs mailing list