diff --git a/Changelog b/Changelog index 0e23887..b8b0b91 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,8 @@ +version 1.3.1-rc.3 (2022-08-17) + + - fixed a bug which caused writing to a file via the -P switch to cause a + segmentation fault + version 1.3.1-rc.2 (2022-08-09) - added four encodings for {vmovdqu, vmovupd} xmmN {xmmN,m/128} diff --git a/Makefile.am b/Makefile.am index 65a7920..ae394f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -127,6 +127,7 @@ TAP_LOG_COMPILER = ./test/tap/compiler.sh # add TAP tests here TEST_TAP = \ + test/tap/call.tap \ test/tap/cmp.tap \ test/tap/imul.tap \ test/tap/lea.tap \ @@ -154,7 +155,8 @@ XFAIL_TESTS= $(TEST_EAF) \ test/tap/nasm_incompatible.tap # add SH-tests here -TEST_SH = test/tools/asmline.sh +TEST_SH = test/tools/asmline.sh \ + test/tools/asmlineP.sh # add .c -tests here diff --git a/configure.ac b/configure.ac index 7d76524..5e224e0 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) -AC_INIT([assemblyline],[1.3.1-rc.2],[yval@cs.adelaide.edu.au]) +AC_INIT([assemblyline],[1.3.1-rc.3],[yval@cs.adelaide.edu.au]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_SRCDIR([src/assemblyline.c]) AC_CONFIG_AUX_DIR([build-aux]) diff --git a/test/tap/call.tap b/test/tap/call.tap new file mode 100644 index 0000000..da29dea --- /dev/null +++ b/test/tap/call.tap @@ -0,0 +1,23 @@ +push rax +push rcx +push rdx +push r8 +push r9 +push r10 +mov rcx, 0x637ea511 +mov rdx, 0x637ea4d1 +mov r8, 0x637ea4f1 +mov r9, 0x0 +push 0x0 +push 0x0 +mov r10, 0x61813ff0 +call r10 +pop rcx +pop rcx +pop r10 +pop r9 +pop r8 +pop rdx +pop rcx +pop rax +ret diff --git a/test/tools/asmlineP.sh b/test/tools/asmlineP.sh new file mode 100755 index 0000000..d60e6e9 --- /dev/null +++ b/test/tools/asmlineP.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# error out on any error +set -e + +tool=./tools/asmline +# should not error out without option to '-r' +${tool} -r <