Jump to content
  • 0

sscanf warning: String buffer overflow.


Question

Posted

Nick: CrystyXSR

Problema:  sscanf warning: String buffer overflow.

Erori / warnings: Server_ log

[pawn][20:07:27] sscanf warning: String buffer overflow.

[20:07:27] [debug] Server crashed while executing XSR.amx

[20:07:27] [debug] AMX backtrace:

[20:07:27] [debug] #0 0000006c in ?? (... <30 arguments>) at C:\Users\crysty\Desktop\xsr\Pawno\include\float.inc:102

[20:07:27] [debug] #1 0000006c in public OnDialogResponse () at C:\Users\crysty\Desktop\xsr\Pawno\include\float.inc:102

[20:07:27] [debug] Native backtrace:

[20:07:27] [debug] #0 0056309b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so

[20:07:27] [debug] #1 0055e2d2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so

[20:07:27] [debug] #2 0055eebc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so

[20:07:27] [debug] #3 0055f366 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so

[20:07:27] [debug] #4 00562cec in ?? () from plugins/crashdetect.so

[20:07:27] [debug] #5 00973410 in ?? ()

[20:07:27] [debug] #6 f5972a14 in ?? () from ŕčç

[20:07:27] [debug] #7 0055e218 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so

[20:07:27] [debug] #8 00561aa9 in ?? () from plugins/crashdetect.so

[20:07:27] [debug] #9 080a505f in ?? () from ./samp03svr

[20:07:27] [debug] #10 080b0ea4 in ?? () from ./samp03svr

[20:07:27] [debug] #11 08071af8 in ?? () from ./samp03svr

[20:07:27] [debug] #12 08071bf2 in ?? () from ./samp03svr

[20:07:27] [debug] #13 0807bab0 in ?? () from ./samp03svr

[20:07:27] [debug] #14 080ad09d in ?? () from ./samp03svr

[20:07:27] [debug] #15 080ad242 in ?? () from ./samp03svr

[20:07:27] [debug] #16 080a85ce in ?? () from ./samp03svr

[20:07:27] [debug] #17 00294d26 in __libc_start_main () from /lib/libc.so.6

[20:07:27] [debug] #18 0804b4a1 in ?? () from ./samp03svr[/pawn]

Lini/script: -

Ai incercat sa rezolvi singur ?: da

93.119.26.23:7777

11 answers to this question

Recommended Posts

  • Administrator
Posted

Ce ai facut pe acolo de ai atatea erori? In mod normal nu trebuie sa ai atatea.

Posted

Aceasta eroare din cate stiu eu poate sa fie de la multe lucruri.

Ex.: Marimea unui string pe care il folosesti in sscanf e de maxim 32 de caractere .

      E posibil sa fie prea mare ce ai in sscanf gen :

sscanf(Query, "e<p<|>s[24]s[32]dddddddds[50]dddddddddddddddddddddddddddd>",P_DATA[i]);

P.S.: Posteaza toate liniile din gm gen asta .

Posted

[list type=decimal]

[*]new lsMail[ 128 ];

if ( sscanf( inputtext, "s[256]", lsMail ) )

[*]if ( sscanf( inputtext, "i", l_Value ) )

[*]if ( sscanf( inputtext, "i", szGangPoints ) )

[*]if ( sscanf( inputtext, "u", Player ) )

[*]new lPassword[ 25 ];

if ( sscanf( inputtext, "s[128]", lPassword ) )

[*]if ( sscanf( inputtext, "s[25]", ClanName ) )

[*]new

rPassword[ 25 ]

;

        if ( sscanf( inputtext, "s[25]", rPassword ) )

[*]new

lsMail[ 128 ]

;

if ( sscanf( inputtext, "s[128]", lsMail ) )

93.119.26.23:7777

  • Administrator
Posted

Da e o problema, de ce ai face functia aia?

Si NU mai face up decat dupa 24 de ore!

Posted

Am bagat din FS-ul cu geoip in gm si in fs avea stock-ul sscanf si trebuie mult modifcat daca e sa o scot

93.119.26.23:7777

Posted

Incearca sa scoti stocku' SSCANF si vezi daca mai da alea

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.