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

memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes

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.
[06:44 am]
CoCo( -- anyone willing to help fix a few triggers on a new "impossible" map? Please
[06:52 pm]
lil-Inferno -- UndeadStar
UndeadStar shouted: https://www.youtube.com/watch?v=rbChzMFX0mE <= I wonder if that will attract new players to SC1&2 ?
:doubt:
[2026-10-28. : 3:18 pm]
UndeadStar -- Spoiler: there are no medics in that video
[2026-10-28. : 3:18 pm]
UndeadStar -- this made me remember a line in the Broodwar manual static about medics "lengthening the expected battlefield life expectancy to over nine seconds"
[2026-10-28. : 6:50 am]
UndeadStar -- https://www.youtube.com/watch?v=rbChzMFX0mE <= I wonder if that will attract new players to SC1&2 ?
[2026-10-28. : 2:28 am]
Symmetry -- ball cleavage
[2026-10-28. : 12:38 am]
Wing Zero -- Ya cleavage
[2026-10-28. : 12:02 am]
NudeRaider -- and you can guess what the small thing in the middle is :awesome:
[2026-10-28. : 12:01 am]
NudeRaider -- Fartys balls
[2026-10-27. : 11:28 pm]
Ultraviolet -- ( :farty: Y :farty: )
Please log in to shout.


Members Online: JODENG, ihjel