Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBLive - UDP server/client using ENet
#4
@Unseen Machine 

Writing at the speed of light, I see?

Sources contains many typos. Contains external call.  _popen("curl ...")

What is this.  QBLive_Server.h line 42: std:tring GetGlobalIP_Clean() {   (better is std:: string...., no?)   
                                            line 44: std:tring result = "";


and then...

Buffering security flaw (actually a bug)

strncpy(..., 1024) does not guarantee a \0 at the end.

strcpy(buffer, g_LastPacketData) can overwrite memory if the caller passes a smaller buffer. This is a classic buffer overflow in an exported function.

But maybe this all is not your fail. C++ code insert to code marks. It works better.  [ code ]  and  [ / code ] without spaces


Reply


Messages In This Thread
RE: QBLive - UDP server/client using ENet - by Petr - 12-25-2025, 08:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)