strncmp
function · crt · primitive
- Address
0x40de80· 56 bytes, up to0x40deb7- Meaning
- Compares at most n bytes of two strings, case-sensitive
- Confidence
- verified, proof one
- Finding
- objectlayer/party#guild-events
Finding: Guild events in objectlayer: party, guild and petitions
0x92 (0x5e7180) reads a type, a u8 count and that many strings of at most 0x100 into three
0x100-byte stack slots, unbounded, so a fourth string overruns the frame. Types 0, 1 and 3 to 8 show
the promote, demote, join, leave, remove, leader-is, leader-changed and disbanded messages; 2, the
MOTD, signals GUILD_MOTD; 10 renames the rank atoi(first) to the second string, unchecked; 12
and 13 show a member signing on or off; 11 does nothing; 9 and any type above 13 show
ERR_GUILD_INTERNAL. Every type ends in 0x4d1160(1) except 12, 13 and a failed gate of 10.
The derivation is in the doc.
Callers 15
- 0x40adfb unassigned
- _setlocale crt
- 0x429880 unassigned
- GetCpuCapabilities os
- FindTextSection os
- SStrCmp storm
- FindSwitchByPrefix storm
- 0x721d20 unassigned
- 0x723de0 unassigned
- 0x7d16b0 unassigned
- 0x7d1940 unassigned
- 0x7d2600 unassigned
- 0x7d2a60 unassigned
- 0x7de900 unassigned
- 0x7dea60 unassigned
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.