I am currently (trying) maintaining a small server/client system. The author abandoned the project 2 years ago. I don't really know C as I'm more at home with Swift.
So far it compiles/runs on a modern Linux. However when it comes to a file transfer the server crashes with the error *** stack smashing detected ***: terminated. I could fix this error by giving the gcc the flag -fno-stack-protector. But then I have the problem that the server runs permanently with a CPU load of 100% at some point. The task goes crazy.
The file which should be responsible for this is this one (I thinks so):
https://github.com/ProfDrLuigi/wired/blob/master/wired/transfers.c
To be honest I have no idea where to start. I think the server does this only since the OpenSSL libs were updated from 1.0 to 1.1 in the distro repos. Does anyone have an idea where to start?