Skip to content

Is there a way to rename the undefined1, undefined2, undefined4, undefined8 types? #2564

Answered by emteere
mrexodia asked this question in Q&A
Discussion options

You must be logged in to vote

The undefined datatypes are used to note an access of a size without knowing the real type, or the existence of a parameter without locking in the type. They are really placeholder types. The decompiler is free to propagate a type and replace the undefined with a good type for all undefined types. In addition, undefined types defined in memory can be replaced with a more specific type by algorithms.

If the decompiler were to use uint8_t, that could be incorrect as the type might be signed. It all depends on the access. The decompiler will try to replace the type with a correct type based on the access or use. Absent any other type information than a size, especially when accessing through…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mrexodia
Comment options

@dev747368
Comment options

Comment options

You must be logged in to vote
1 reply
@mrexodia
Comment options

Answer selected by mrexodia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants