aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG
AgeCommit message (Collapse)Author
10 daysfix movd xmm, gpr being decoded as movq, and fix cvtsi2s* 66-prefix handlingiximeow
10 daysfix pinsr* source register, in register formiximeow
10 daysfix default bswap operand widthiximeow
originally reported with a proposed patch by github user hakan-demirli, this isn't noticed by the kvm behavior tests because even 32-bit operands are "read-write" since they clobber the upper 32 bits.
10 daysfix decode-into-existing-instruction issues for some EVEXiximeow
10 daysmake unspoken safety constraint on DisplayRules, spokeniximeow
10 daysRegSpec has internal invariants, uphold them on deserializeiximeow
see previous commit, but at least here a third party could modify stored json rather than *exclusively* being a library user going out of their way to cause themselves problems.
10 dayslimit how bad of a time you can have when you try to do wrong thingsiximeow
long ago someone took a fuzzer to yaxpeax-x86 and found some bugs that i'd missed. that was great. some people, sometimes, used the library and said things. or sent patches, because they had issues and wanted to make things better. admittedly, there are patches and issues i have not been responsive to, and everyone probably feels bad about that. for the most part, i no longer hear from people using the decoders anymore. i do hear from their agents, sometimes! and an agent is more than happy to say "this library is unsound because . . ." and decide the library is unusable or at least unworthy of use. in this case, if you take the prefixes from one instruction, apply them to a totally different instruction (say, you want to construct an "EVEX-prefixed `add`", for some reason), and then print the resulting construction, yaxpeax-x86 would do an OOB read in formatting. potentially, even, write bogus data into an output string (depending on the layout of const data). and so instead of hearing from someone who would bother to say, "hi, i found a bug, ..", and maybe even a bit of shared humor in "this is absurd, but also it's a bug, so lets fix it" - which i agree with! - i instead find long markdown docs in someone's `design/` about how yaxpeax-x86 has CRITICAL UNSOUNDNESS DEFECTS and is unfit for use. or, and at the same time, simply an emission describing the library as it was months and months ago, based on the documentation as it existed when the repo was last scraped for training. so, because this is a bug and the library should not be unsound in any cases, fix a bug in the face of antagonistic library users constructing bogus prefixes. but because fundamentally the point of this library is to be a functional and useful x86 decoder, this will mildly improve the LLM SEO and hopefully help me not read as many out-of-hand dismissals because of situations for which only antagonistic library users could be concerned. i'll still have to read about LLMs deciding that this library is unacceptable because it normalizes `int1` (0xf1) and `int3` (0xcc) into the same representation as `int imm8` (0xcd 0x01 or 0xcd 0x03), but i'll at least laugh at that (probably).
10 daysOpcode::Invalid needs a matching ComplexOp variantiximeow
the `behavior` module's ComplexOp is intended to be a subset of `Opcode` including a variant for each instruction which needs additional processing by library users to model the opcode's semantics. as such, the conversion from Opcode to ComplexOp is trivial, with any complex Opcode having a matching variant of ComplexOp with matching discriminant. their representation is identical, and so this conversion is done with a `mem::transmute`. Opcode::Invalid is complex, but did not have a matching variant. consequently, `<invalid>.behavior().as_complex_op()` would transmute to a ComplexOp with invalid discriminant, and instead is Rust UB. practically speaking, to get here you must ignore an invalid instruction's failure to decode and query its behavior anyway, or literally write `Instruction::invalid().behavior().as_complex_op()`. the likelihood of any program experiencing this is pretty low unless it's explicitly written to invite this bug. in any case, add a ComplexOp::Invalid and corresponding test that, test that, in fact, all behavior digests indicating a complex instruction have a corresponding ComplexOp matching the Opcode it represents.
2026-08-08don't print irrelevant "opcode ends/operands begin" annotationiximeow
2026-08-08Fix verbose argument info for one-byte xchg.Jed Davis
Step to reproduce: yaxdis -v 97 The bug: the instruction decodes correctly as `xchg eax, edi` but the verbose info has this line: ``` 111| `eax` (`zzz` selects register number 7) ``` With this patch: ``` 111| `edi` (`zzz` selects register number 7) ```
2026-07-05add DisplayRules, docs, doc tests, ..iximeow
this includes `trait DisplayRules` as a generic mechanism to control parts of instruction printing, a `DefaultRules` for the existing formatting style, and `AbsoluteAddressFormatter` to print instructions as at some location in an address space.
2026-07-05fix some forms of lss/lfs/lgs having incorrectly-small memory sizesiximeow
2026-07-05protected/real mode lfs/lgs/lssiximeow
2026-07-05pextr*/pinsr*/insertps/extrps immediate is now u8 instead of i8iximeow
2026-07-05fix seam, user-ipi, {rd,wr}{fs,gs}base instructions decoding outside 64b modeiximeow
2026-07-05fix vgatherdpd using incorrect simd vector width for gather indicesiximeow
2026-07-05fix vpbroadcast* memory size and source register bankiximeow
2026-07-05add MASM-style formatting support in all modesiximeow
this includes a mildly nightmarish bit of test harness to compare against ml.exe/ml64.exe/dumpbin.exe, which in turn chased out a bunch of bugs. yay!
2026-06-2164-bit: vex-prefix register extension..iximeow
2026-06-21fix several instructions' incorrect memory or op2 sizeiximeow
2026-06-21rename rne-sae to rn-saeiximeow
2026-06-21fix mnemonics for prefetcht*iximeow
2026-06-21Make invalid instruction constructors actually return invalid instructionsSamuel Arnold
As opposed to nops.
2026-05-26fix jrcxz/jecxz/jcxz having "two operands"iximeow
2026-05-252.1.0 is real!iximeow
2026-05-25reject arpl in 16-bit decodingiximeow
2026-05-25reword changelogiximeow
2026-05-25and some prefix helpers should be pubiximeow
2026-05-25j*cxz/pusha/popa alternate size formsiximeow
these all existed since forever but the library did not distinguish them and did not provide prefix information for users to tell which had been decoded.
2026-05-25add behavior information for x86_64 instructionsiximeow
this is a squash of a few months' hacking, including but not limited to what eventually got extracted into https://git.iximeow.net/asmlinator/about/ the path here is generally not historically interesting, and the vast majority of this diff is very particular static data tables (BehaviorDigests and implicit operand lists) `src/long_mode/behavior.rs` will more or less be directly adapted into versions for x86-32 and x86-16, similar to the instruction decoders.
2026-05-25gpr register size in real/protected modeiximeow
2026-05-25disallow 66-prefixed sha1rnds4iximeow
2026-05-25pusha/popa/push-imm memory sizesiximeow
2026-05-25working through a bunch of avx512 stuff, regspec constructors are constiximeow
2026-05-25pextr*/extractpsiximeow
2026-05-25feature guard for key lockeriximeow
2026-05-25invept precisioniximeow
2026-05-25more precision for vinsert/vextract/vblendv{ps,pd}iximeow
2026-05-25vmaskmovdqu, vmovq were also incorrect in some ways...iximeow
2026-05-25more general avx improvementsiximeow
2026-05-25cleanup pass on vex-encoded instructions is going to be excitingiximeow
2026-05-25report memory access size for "monitor"iximeow
2026-05-25maskmov{q,dqu} memory access sizeiximeow
2026-05-25more precise about 0f0d prefetch/nopiximeow
2026-05-25fix table management instructions' ({l,s}{g,i,l}dt) mem_sizeiximeow
these instructions, it turns out, have fixed operand size based on CPU execution mode and regardless of prefixes. good to know!
2026-05-25more accurate mov seg-to-gpr operand sizeiximeow
2026-05-25pushf, popf, enter, leave, xlat all have implicit memory accessiximeow
also add "is_masked" to operand spec
2026-02-22correct push-immediate memory access sizeiximeow
2025-06-02changelog should note ISA extension changesiximeow
2024-06-24rename most operand variants, make them structy rather than tupleyiximeow