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.
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
Please log in to shout.


Members Online: RIVE, Zergy