[nasm:nasm-2.15.xx] travis: weirdpaste -- add nil dereference test

nasm-bot for Cyrill Gorcunov gorcunov at gmail.com
Sun Jul 12 06:03:04 PDT 2020


Commit-ID:  f1cf95480d9df9e7854a4be6844f86ff854e03d2
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=f1cf95480d9df9e7854a4be6844f86ff854e03d2
Author:     Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Sun, 12 Jul 2020 14:04:44 +0300
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 12 Jul 2020 06:01:51 -0700

travis: weirdpaste -- add nil dereference test

To address BR 3392696

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>


---
 travis/test/weirdpaste.asm   |  10 ++++++++++
 travis/test/weirdpaste.bin.t | Bin 42 -> 45 bytes
 travis/test/weirdpaste.i.t   |  10 ++++++++++
 3 files changed, 20 insertions(+)

diff --git a/travis/test/weirdpaste.asm b/travis/test/weirdpaste.asm
index 353ef8a8..e43d855e 100644
--- a/travis/test/weirdpaste.asm
+++ b/travis/test/weirdpaste.asm
@@ -24,3 +24,13 @@
 
 %define N 1e%++%+ 5
 	dd N, 1e+5
+
+;
+; test nil dereference, since we're
+; modifying with %line keep it last
+; in the file
+;
+; BR 3392696
+;
+%line 1 "`weirdpaste.asm"
+mov eax, eax
diff --git a/travis/test/weirdpaste.bin.t b/travis/test/weirdpaste.bin.t
index db0468ed..23061d3d 100644
Binary files a/travis/test/weirdpaste.bin.t and b/travis/test/weirdpaste.bin.t differ
diff --git a/travis/test/weirdpaste.i.t b/travis/test/weirdpaste.i.t
index bf2acd6c..1df996dc 100644
--- a/travis/test/weirdpaste.i.t
+++ b/travis/test/weirdpaste.i.t
@@ -21,3 +21,13 @@
 
 
  dd 1e+5, 1e+5
+
+
+
+
+
+
+
+
+%line 2+1 '`weirdpaste.asm'
+mov eax, eax


More information about the Nasm-commits mailing list