MantisBT - Zandronum
View Issue Details
0003990Zandronum[All Projects] Bugpublic2022-04-05 03:292024-01-02 03:27
RushJet1 
 
normalcrashalways
resolvedfixed 
Windows 10WindowsXP/Vista/7
3.1 
3.23.2 
0003990: "sayto" while a player has a very long name can crash the game
If I use "sayto" with a correct name it seems to work fine. But if I type a name incorrectly or don't use quotes, it will crash the game. I don't have a crash log because the game just closes when I do this.
sayto <name you know doesn't exist> <some text>
has happened consistently every time to me tonight. Never really tried using this before.
No tags attached.
Issue History
2022-04-05 03:29RushJet1New Issue
2022-04-05 03:34RushJet1Note Added: 0022178
2022-04-05 03:48WaTaKiDNote Added: 0022179
2022-04-05 06:03RushJet1Note Added: 0022180
2022-04-05 06:31WaTaKiDNote Added: 0022181
2022-04-05 14:47KaminskyNote Added: 0022182
2022-04-05 14:57KaminskyNote Added: 0022183
2022-04-05 14:58KaminskyStatusnew => needs testing
2023-01-01 16:22KaminskyTarget Version => 3.2
2023-01-01 16:22KaminskySummary"sayto" incorrect name crashes game => "sayto" while a player has a very long name can crash the game
2024-01-02 03:27Ru5tK1ngNote Added: 0022957
2024-01-02 03:27Ru5tK1ngStatusneeds testing => resolved
2024-01-02 03:27Ru5tK1ngResolutionopen => fixed
2024-01-02 03:27Ru5tK1ngFixed in Version => 3.2

Notes
(0022178)
RushJet1   
2022-04-05 03:34   
This seems to only happen on a specific server.. but it's the only server with people on it so I need to test more.
(0022179)
WaTaKiD   
2022-04-05 03:48   
does this crash only you or does it crash other players and/or the server as well
(0022180)
RushJet1   
2022-04-05 06:03   
It crashed a friend of mine when he tried to reply to me. I think it might have to do with IDX. I was able to message anyone with an IDX below 13, but above 13 and it crashed. If I used sayto_idx then any idx would work fine. I need to see if this happens on other servers too but will have to wait until later when they're populated.
(0022181)
WaTaKiD   
2022-04-05 06:31   
i tried connecting 14 clients to a local windows server and couldnt reproduce the crash with sayto or sayto_idx

ill try this on a tspg linux server another time
(0022182)
Kaminsky   
2022-04-05 14:47   
FYI in 3.1, a client can crash if they use "sayto <player name>" when there's a player on the server with an incredibly long name (e.g. using different colour codes, particularly New Text Colours, for every character in their name).

I'm not 100% sure if this is the reason why you crashed, but since you mentioned: "I was able to message anyone with an IDX below 13, but above 13 and it crashed.", "If I used sayto_idx then any idx would work fine.", and "This seems to only happen on a specific server. But it's the only server with people on it so I need to test more." it's likely that this was the case, and if so, should already be fixed in 3.2.
(0022183)
Kaminsky   
2022-04-05 14:57   
Here's a link to a 3.1-compatible build with the fix mentioned above:'https://www.mediafire.com/file/xexmicky2cfd06d/Zandro3.1-saytocrashfix.zip/file [^]'
(0022957)
Ru5tK1ng   
2024-01-02 03:27   
Tried to test this with r231220. I tried using 'sayto' to a player on a server with a maxed out name (Player followed by a long series of numbers) and was unable to crash. I even tried sending messages to non-existing players with long strings of characters and no issue. Even used a long name with multiple colors and still no crash. Unless RushJet chimes in, I think this should be considered resolved.