-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于解析path的内存错误 #67
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if(sscanf(url+7, "%[^:]:%hu/%s", ip, &port, suffix) == 3)
{
这段代码需要调换下顺序,==2在前面,==3在后面。应该是你那边没有模拟到这种情况,正常的工具是不会出现这种情况,如果给过来的path没有带端口,就要出现内存错误,换顺序后就可以解决了,原因是==3放在前面,如果path不带端口,那边ip里面会存在多个字符串(多个\0结尾),那边插入map的时候会存在内存错误
The text was updated successfully, but these errors were encountered: