Staredit Network > Forums > Modding Discussion > Topic: Bin Dialog overflow
Bin Dialog overflow
Jun 3 2009, 5:01 pm
By: Heinermann  

Jun 3 2009, 5:01 pm Heinermann Post #1

SDE, BWAPI owner, hacker.

It might be possible to call other function pointers or maybe even custom functions through the use of an overflow in BIN dialog control IDs.

After disassembling Starcraft 1.00, I know that BIN Dialogs are layed out like this:

-> Load dialog with dialog loop function.
The Menu dialog loop consist mainly of 4 cases.
0 = Main Dialog
1 = Standard Cancel
2 = Standard OK
10 = User Array

The "User Array" calls a function pointer in an array that I consider to be the "Control ID Index Array". It's used for menu or static dialogs that have control IDs above 0. This is where the overflow comes in, referencing a control ID beyond the bounds of the array.

For most BIN Dialogs, the control IDs are as follows:
0: Main Dialog
-2: OK
-3: Cancel
Positive: Function Array reference
Negative: Unused/Static index

Thoughts? Attempts?
I havn't tested it out yet.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: raggedmalpracti