Asterix Gaming Guild Logo GeneralXXLXXL 2XXL 3Olympic GamesXXL SpeedrunningXXL Romastered SpeedrunningXXL 2 SpeedrunningXXL 2 Remaster SpeedrunningOlympic Games SpeedrunningRecent StratsOther Asterix GamesOther GamesAsterix MediaSpoofy GoofsCreative ShackVideosHelpBot SpamRetro GamesModdingStreamsPatchesModsToolsResourcesDownloadsWikiUnfair XXLCaesar's ChallengeIntroductionsVC TextAnnouncementsVillage GatesRulesFeedback

#general

Mr.Rubinshtein
:Very: :Soontm:
AdrienTD
Yeah, I think that's one good approach.
AdrienTD
You would basically just need to add one additional check that the input size doesn't overflow the buffer's size.
schmeling65
and now the question is: what will the asm instructions look like?
AdrienTD
maybe something like this: ``` In the original code ... jmp mycode back: ... mycode: # assume size is in register eax, and max size of buffer is 123 cmp eax, 123 jle sizeok # jump to sizeok if eax <= 123 # if eax > 123, do something to prevent RCE # example, set size to 123, so a read should not overflow anymore # another possibility is to just crash or exit the game, at least it will prevent the exploit from happening mov eax, 123 sizeok: jmp back # to original code after the jump ```
Mr.Rubinshtein
i will start to stream now
Mr.Rubinshtein
:PogClappa:
PegPeregoGaucho
:Obelul:
Mr.Rubinshtein
oh wow that was random
Mr.Rubinshtein
<@&677253157327339539>
Mr.Rubinshtein
:WutFaceW:
Mr.Rubinshtein
HELP
Failentin
oof
Mr.Rubinshtein
heelp
Mr.Rubinshtein
illegal footage
Mr.Rubinshtein
alert level illegal footage
Mr.Rubinshtein
this is not a drill
Noxus94
:sanaMonka:
Filip5011
mute him
Filip5011
@timeout