[Admin] tierrilopes Posted December 15, 2015 at 03:20 PM Share Posted December 15, 2015 at 03:20 PM Nome: vulnerabilidade cube long_list Afeta: todos os cores Sintomas: servidor vai abaixo, volta atrás no tempo Resolução: Abrir o ficheiro cube.cpp; Procurar por: if (resultText.size() - 20 >= CHAT_MAX_LEN) { sys_err("[CubeInfo] Too long cube result list text. (NPC: %d, length: %d)", npcVNUM, resultText.size()); resultText.clear(); resultCount = 0; } Substituir por: int cube_corrigido; if (resultText.size() < 20) { cube_corrigido = 20 - resultText.size(); } else { cube_corrigido = resultText.size() - 20; } if (cube_corrigido >= CHAT_MAX_LEN) { sys_err("[CubeInfo] Lista demasiado grande. (NPC: %d, FIXED_size_value_exygo: %d, length: %d)", npcVNUM, cube_corrigido, resultText.size()); resultText.clear(); resultCount = 0; } Link to comment
pedrorrr Posted December 19, 2015 at 01:49 PM Share Posted December 19, 2015 at 01:49 PM Não tinha conhecimento disto, mas sempre se aprende Corrigido já na minha source, obrigado e +1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now