483 B
483 B
We can see using ghidra that we need the first number to be less than 10, but then we need it to be equal to 0x574f4c46, so we will have to change it and the only way to do that is by using the memcpy between the two conditional statements.
But the memcpy uses the result of atoi * 4 for the size of the cpy. But atoi result should be negative.
We will use c's wrapping overflow behavior for this problem, and memcpy will override the atoi result position with the desired number.