Infinite loop / null pointer access
New(?) opcodes
no problem, i come back checking updates just now. no delay to me, thanks for help,
Hi Cyrill, I got the email registeration confirmation and just forwarded the reports to bugzilla. Thanks for your response.
Thanks for report. Once you manage to register on bugzilla copy it there please.
Reporting the bug here since i am not able to create an account on Bugzilla Could you please try again. Hopefully I've fixed mailing issue on https://bugzilla.nasm.us/ if it won't pass please ping me directly to gorcunov@gmail.com
The same POC file causes a "memory alignment error" for stable version nasm 2.13. 273 static uint8_t *do_ea(uint8_t *data, int modrm, int asize, 274 int segsize, enum ea_type type, 275 operand *op, insn *ins) ... 449 switch (mod) { 462 case 2: 463 op->segment |= SEG_DISP32; **464 op->offset = gets32(data);** 465 data += 4; 466 break; 467 } 468 return data; 469 } 470 } The error log is attached: disasm/disasm.c:464:26: runtime error: load of misaligned address 0x7ffc53ca36a3 for type 'uint32_t', which...
We have moved to new hosting so there might be problem with emals and such because not eveything gone smooth yet, hopefully I manage to fix all the problems during the upcoming week.
I'm very sorry for delay in reply, we happen to not use SF service novaday. I've activated your account on the forum, please try to login there and copy messages to.
Stack-Buffer-Overflow in disasm (src/disasm/disasm.c)
Stack buffer overflow (out-of-bound) in disasm (src/disasm/disasm.c)
i'm using nasm 2.11.08
also, i'd appreciate if you can activate my account (wild.pie) on nasm.us, in case i have other questions. thank you,
well, i have existing code to manipulate 64-bit seg descriptors, but i don't have 32-bit protected mode code. the problem is cpu enforces flat memory in long mode. don't want to spend too much time on this, so i posted on stackoverflow and here's a response agreeing with my suspects: https://stackoverflow.com/questions/49721801/does-ebp2-reference-ds-or-ss-segment does this make sense? if i'm wrong, can you tell me why [ebp*2] is the same as [ebp+ebp}? thanks,
but why [ebp+edx] and [edx+ebp] are different? it takes some time to test this in a 32-bit or 64-bit mode, but doable. is there an easier way to verify this?
This forum is generally considered abandoned. I've only very recently started coding again, but if you are still unable to register at nasm.us, I will try to help. As far as I recall, [ebp*2] is the same as [ebp + ebp*1]
is this forum abandoned? tried to sign up on nasm.us forum, but cannot receive activation email. i had no problem signup here with same email. also, nasm generates [ebp, eiz] for [eiz, ebp] (optimization for shorter machine code, which i think is incorrect), but it generates different codes for [ebp, edx] and [edx, ebp], which is correct.
nasm generates optimized code for [eax*2]. it generates the code as [eax + eax] instead. i just noticed it also replaces [ebp*2] with [ebp + ebp]. in [ebp*2], ebp is the index register, not base register. so this form references DS segment. in [ebp + ebp], ebp is used as base register, so it references SS segment. is this a nasm bug or i missed something? IDM vol 1 page 3-21 "Table 3-5 Default Segment Selection Rules", memory reference uses SS by default if EBP is used as base register Any memory...
nasm generates optimized code for [eax*2]. it generates the code as [eax + eax] instead. i just noticed it also replaces [ebp*2] with [ebp + ebp]. in [ebp*2], ebp is the index register, not base register. so this form references DS segment. in [ebp + ebp], ebp is used as base register, so it references SS segment. is this a nasm bug or i missed something? IDM vol 1 page 3-21 "Table 3-5 Default Segment Selection Rules", memory reference uses SS by default if EBP is used as base register Any memory...
nasm generates optimized code for [eax*2]. it generates the code as [eax + eax] instead. i just noticed it also replaces [ebp*2] with [ebp + ebp]. in [ebp*2], ebp is the index register, not base register. so this form references DS segment. in [ebp + ebp], ebp is used as base register, so it references SS segment. is this a nasm bug or i missed something? IDM vol 1 page 3-21 "Table 3-5 Default Segment Selection Rules", memory reference uses SS by default Any memory reference which uses the ESP or...
Hi, I have just dowloaded and installed the tool from the offical web site. Surprisingly, an application called Elara, and considered as a malware, has appeared on my computer. I'm currenlty trying to remove it.
EDIT: I shouldn't have listed 'mylabel dd 0' as a definition. I know that, and this is what I'd expect, mylabel will be translated to the address/offset, not to the value of the memory it precedes.
Ability to enable deprecated/experimental features via command line flags
ndisasm truncates 64 bit origin specified in command line
Minor fixes for typos
AVX512 instructions with {sae} but no rounding control should specify vector size in LL bits
vpinsrb vpinsrw vpextrb vpextrw with EVEX and memory operand have wrong compressed displacement
Thanks a million Ivan. The CS: was the problem. I had tried FAR before but without...
I believe you should make these changes in NewCode: call far [cs:OLDINTADRoff] Remember...
The code below is an attempt to re-vector a BIOS interrupt (09h) If the program is...
you can use following combination: mov rax, 0x123456789abcdef0 ; 64-bit constant...
I found the root cause. The ndisasm come with Xcode is too old, version is "NDISASM...
ndisasm hang
error configuring NASM using MinGW/MSys