Closed jacob-baines closed 6 years ago
Good catch and sorry it's taken me so long to get back to this. I've merged this in with the devel branch. I'm cleaning stuff up and adding some features, then I'll move everything to the master branch at once.
I was investigating compiling a static build with musl and revsh kept binding to random ports.
From io_nossl.c:
In the above, "ip_port" points to memory within ip_address. So bind is being passed data that has been freed. Here is some valgrind output that also points this out:
I just moved the free() until after strtol had been called.