Skip to content

[DYNAREC] Added check of dyn's size#589

Merged
ptitSeb merged 1 commit intoptitSeb:masterfrom
wannacu:master
Mar 17, 2022
Merged

[DYNAREC] Added check of dyn's size#589
ptitSeb merged 1 commit intoptitSeb:masterfrom
wannacu:master

Conversation

@wannacu
Copy link
Contributor

@wannacu wannacu commented Mar 17, 2022

No description provided.

@ptitSeb
Copy link
Owner

ptitSeb commented Mar 17, 2022

Why are you adding this check? did you have a case when the dynablock would grow in an uncontrolable way?

@wannacu
Copy link
Contributor Author

wannacu commented Mar 17, 2022

Why are you adding this check? did you have a case when the dynablock would grow in an uncontrolable way?

Yes, dyn inst size more than 10000, then updateNeed encounter deep recursion

@ptitSeb
Copy link
Owner

ptitSeb commented Mar 17, 2022

But is that block valid?

@wannacu
Copy link
Contributor Author

wannacu commented Mar 17, 2022

But is that block valid?

From inst log, it looks valid, and after cancelbock, it works well.

@ptitSeb
Copy link
Owner

ptitSeb commented Mar 17, 2022

If it's leggit x86 code, it's a shame to waste such big block. Putting a cut in dynarec_arm_pass.c doesn't work? (the updateNeed function still bomb?)

@wannacu
Copy link
Contributor Author

wannacu commented Mar 17, 2022

If it's leggit x86 code, it's a shame to waste such big block. Putting a cut in dynarec_arm_pass.c doesn't work? (the updateNeed function still bomb?)

It work well after putting a cut.

@ptitSeb ptitSeb merged commit ccfc8a8 into ptitSeb:master Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants