Open taiscremaschi opened 3 months ago
PASS 123
NICK pab
USER wrong
We have seg. fault if wrong PASS attempt to:
PASS wrong
(This does not occur on the main branch)
==1023956== Memcheck, a memory error detector
==1023956== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1023956== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==1023956== Command: ./ircserv 8081 123
==1023956== Parent PID: 1023938
==1023956==
==1023956== Invalid read of size 8
==1023956== at 0x49BCBA4: std::cxx11::basic_string<char, std::char_traits
alterei o nosso server dar split no começo de \n. isso faz ele entrar na nossa funcao principal de maneira mais segura. agr o findcmd n tem for looping pq os indices sao definidos bem...