aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'nasm-2.15.xx'HEADmasterCyrill Gorcunov2020-12-317-0/+104
|\ | | | | | | | | * nasm-2.15.xx: preproc: prohibit unmacro while macro expansion
| * preproc: prohibit unmacro while macro expansionnasm-2.15.xxIgor Munkin2020-12-317-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If macro is undefined while it's being expanded, use after free occurs, since the MMacro instance is released, but it is still used to proceed the expansion. This change forbids macro undefinition: non-fatal error is raised and the MMacro instance is not released if it is being processed by NASM preprocessor. Consider the following example: | $ cat test.asm | %macro m 0 | %unmacro m 0 | %endmacro | m | $ ./nasm test.asm | test.asm:4: error: `%unmacro' can't undefine the macro being expanded | test.asm:2: ... from macro `m' defined here Fixes BR3392531 and BR3392716. Signed-off-by: Igor Munkin <imun@cpan.org> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add br3392637Cyrill Gorcunov2020-11-044-0/+82
| | | | | | | | | | | | | | Code for testcase provided by Suhwan. Reported-by: Suhwan <prada960808@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | BR3392637: output/outieee: Fix nil dereferenceCyrill Gorcunov2020-11-041-0/+17
| | | | | | | | | | | | The handling been broken in commit 98578071. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add rdpidCyrill Gorcunov2020-10-154-0/+46
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: update avxCyrill Gorcunov2020-10-152-0/+2
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add immCyrill Gorcunov2020-10-153-0/+38
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add ilogCyrill Gorcunov2020-10-155-0/+343
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add hleCyrill Gorcunov2020-10-154-0/+36
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add hexfpCyrill Gorcunov2020-10-153-0/+37
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add gatherCyrill Gorcunov2020-10-153-0/+24
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add floatxCyrill Gorcunov2020-10-154-0/+553
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: update float testCyrill Gorcunov2020-10-152-0/+34
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add ctxlocalCyrill Gorcunov2020-10-153-0/+37
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add cofftestCyrill Gorcunov2020-10-153-0/+97
| | | | | | | | | | | | | | | | Lets run it as win32 since they are sharing backends in most places but win32 is a way more widely used. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add coffalignCyrill Gorcunov2020-10-153-0/+29
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add insertpsCyrill Gorcunov2020-10-113-0/+22
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add masmdispCyrill Gorcunov2020-10-113-0/+61
| | | | | | | | | | | | | | | | It is failing right now so I'm not sure if masm test is correct one. Lets merge it in this form and update if needed. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add movd64Cyrill Gorcunov2020-10-114-0/+43
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add movhpdCyrill Gorcunov2020-10-113-0/+28
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: update nasmformatCyrill Gorcunov2020-10-1118-11/+74
| | | | | | | | | | | | | | | | No need to generate binaries, just compare __OUTPUT_FORMAT__ output and add missing formats. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add objexeCyrill Gorcunov2020-10-113-0/+42
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add timeCyrill Gorcunov2020-10-112-0/+29
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add selfrefCyrill Gorcunov2020-10-113-0/+39
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add timesnegCyrill Gorcunov2020-10-103-0/+18
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add pragmaCyrill Gorcunov2020-10-103-0/+34
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add ppindirectCyrill Gorcunov2020-10-103-0/+157
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add nullfileCyrill Gorcunov2020-10-103-0/+15
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add br3392278Cyrill Gorcunov2020-10-103-0/+33
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add strlenCyrill Gorcunov2020-10-103-0/+20
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add splitea testCyrill Gorcunov2020-10-103-0/+23
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | travis: add ssesizeCyrill Gorcunov2020-10-103-0/+26
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | Merge branch 'nasm-2.15.xx'Cyrill Gorcunov2020-10-1053-58/+67
|\| | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * doc/changes: Document rdf header fixCyrill Gorcunov2020-10-101-0/+5
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * rdoff/rdfwriteheader: Write object length and header length in correct orderOzkan Sezer2020-10-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | Compared to 2.12.xx rdfwriteheader() writes the object length and header length in flipped order. Issue seems to have been introduced by commit 8dc965347ddf. BR3392717 Signed-off-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * nasm-t: do not strip newlines from outputnasm-2.15.xx-travisCyrill Gorcunov2020-09-1851-55/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently we strip newlines from files on read and write procedures for better diff output, but as being pointed by hpa@ this makes quite inconvenient to work with tests in a manual mode. Thus lets left outputs as is. We have to update all tests with template outputs since by default output streams are ending with newline. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * nasm-t: add fixme about data readingCyrill Gorcunov2020-09-181-0/+3
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * nasm-t: no need to strip json filesCyrill Gorcunov2020-09-181-1/+1
| | | | | | | | | | | | The json library can handle newlines by self. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | outmacho: macho_dbg_linenum -- fix memory leakCyrill Gorcunov2020-10-051-3/+4
| | | | | | | | | | | | | | | | | | | | In 78f14ab1a63963fd302ce7ecc48b6a9df5442675 the fix is incomplete, we should move free procedure out of the list_for_each traverse. CID 1432930 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | preproc: use explicit addressing while clearing smacroCyrill Gorcunov2020-10-051-1/+1
| | | | | | | | | | | | | | | | | | Better point out explicitly that SMacro::next member is untouched, thus do not use SMacro::next and an array. CID 1432925 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | outmacho.c: macho_dbg_linenum - fix memory leakCyrill Gorcunov2020-10-041-0/+3
| | | | | | | | | | | | | | | | | | If new list is not needed then we should free memory allocated by nasm_basename and nasm_dirname calls. CID 1432930 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | rdoff: search_libraries - zeroify stack allocated structureCyrill Gorcunov2020-10-041-0/+1
| | | | | | | | | | | | | | | | | | | | Coverity scan tool complains on rdffile::rdoff_ver member being called with memcpy uninitialized. Lets zap this structure explicitly once we've it allocated. CID 1432931 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* | asm/preproc.c: in tokenize() advance pointer past ? for TOKEN_QMARKH. Peter Anvin (Intel)2020-09-111-0/+1
| | | | | | | | | | | | | | | | | | When we process a TOKEN_QMARK we also need to advance p, in order to get the proper start for the next token. This fixes travis test br3392707. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* | Merge remote-tracking branch 'github/nasm-2.15.xx'H. Peter Anvin (Intel)2020-09-1118-60/+216
|\| | | | | | | | | | | No conflicts. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * Makefile.in: fix warning dependenciesH. Peter Anvin (Intel)2020-09-113-36/+95
| | | | | | | | | | | | | | | | | | Fix circular dependency on asm/warnings.c by factoring out warnings.$(O) from the dependencies, and use a separate <file>.time which "generate" the main source file as a "side effect", giving us a null target. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * warnings.pl: again, don't update the timestamp unless we need toH. Peter Anvin (Intel)2020-09-111-12/+15
| | | | | | | | | | | | Don't update the timestamp unless we really have to do so. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * .gitignore: ignore timestamp (*.time) filesH. Peter Anvin (Intel)2020-09-111-0/+1
| | | | | | | | | | | | Ignore timestamp files, they are transient. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * doc: improve documentation of %ifid et alH. Peter Anvin (Intel)2020-09-112-5/+9
| | | | | | | | | | | | Clarify some of the semantics of %ifid, %ifnum, and %ifstr. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
| * travis: add br3392442Cyrill Gorcunov2020-09-074-0/+19
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| * travis: add br3392707Cyrill Gorcunov2020-09-065-0/+68
| | | | | | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>