![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
*UPDATED*
inside l2server.exe we have code (dont ask me how i got it): Code:
Log->Add(2,L"[%s][%d] user[%s] failed to ride. no collar[%d]", CharName, CorallID); but in args there is TWO only, last two args Log->Add gets from stack garbage... someone got the way how to invoke this error, and server, when try to format this text crashes Code:
IOThread [0][875] (ahehe): void IOThread_common(void *arglist) -> CUserSocket::OnRead -> IconAction -> User::IconAction() -> void User::Ride(CPet* pStrider) -> CLog::Add -> CLog::AddV -> Log::AddV - vswprintf_s in any hex editor find UNICODE text "[%s][%d] user[%s] failed to ride. no collar[%d]" and change to "user[%s] failed to ride. no collar[%d]" edit: and dont forget to put 0000 after text as zero char (null termitnated string rule) thats all, folks |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2006
Posts: 685
|
[rus]корейские программисты - конина блядская
зы. тоже чтоль расшарить чё-нить.... а для буржуинов пора делать кнопки "thanks" и "good job" [/rus] [eng] good job, man [/eng] |
|
|
|
|
#3 |
|
Архивный участник
Join Date: May 2006
Posts: 209
|
awesome share, big thanks humordwarf, cash for you! (Oh where is the cash system?? :/ )
Edit: Humordwarf we must fix that too? [.%.s.].[.%.d.]. .u.s.e.r.[.%.s.]. .f.a.i.l.e.d. .t.o. .u.n.r.i.d.e... . .n.o. .c.o.l.l.a.r.[.%.d.] to [.%.s.].[.%.d.]. .u.s.e.r.[.%.s.]. .f.a.i.l.e.d. .t.o. .u.n.r.i.d.e... . .n.o. .c.o.l.l.a.r.[.%.s.] |
|
|
|
|
#4 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Quote:
unride thing pass correct parameters to log there is call: Log->Add(2,L"[%s][%d] user[%s] failed to unride. no collar[%d]",_T(__FILE__),__LINE__,CharName,CollarID); all fine here |
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2006
Posts: 209
|
Ok thanks humordward.
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
Great, thanks.
[rus] Хумор, малацца! ![]() Меня иногда эта пиздень доставала. По поводу корейцев - всеми руками согласен xD [/rus] |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Apr 2006
Posts: 120
|
Big thanks, hat from head _o_
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
*UPDATE*
sorry ppl, mistake confused with params order (first %s, then %d) new text should be "user[%s] failed to ride. no collar[%d]" (updated 1st post) |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Please, tell me,
1) what fix it? Same what do Amped "BlockRide=true" ? 2) maybe someone can do hex-text file for me? and main question This is only l2server error unicode message. Why fix it is a new message? So strange for me. Because so easy. |
|
|
|
|
#10 | |
|
Архивный участник
Join Date: Feb 2007
Posts: 139
|
Quote:
|
|
|
|
|
|
#11 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Quote:
2) each ppl may have different exe's, why do not try urself? its not hard main: if you know c++ even little... look on printf-like functions, printf("%s","text") gets from stack address of "text", then read from address, chars and output to console.... but if you try use printf("%s",123) - u'll get exception (crash). like access violation read from address 123 (printf tries read text from address 123) so look again at first message, there is "%s%d%s%d", but on stack there only one string and only one number... second string address (3rd arg) undefined on stack |
|
|
|
|
|
#12 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
No more params for function calling!Big thanks. Question two. What power for this bug? It's only server error? or maybe it server error on bug using? Bug cause server crash? This is only for information. |
|
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Quote:
as soon as u get that crash log, u'll know what to do... i repeat, someone got the way, special or not, cheater or not, not matter... matter - it happens. |
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: May 2007
Posts: 12
|
fixed file upload please please
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
kanziguy use an hex editor to correct it...
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
|
|
|
|
|
#18 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
You can use any editor, you just don't know how to search... Like Humordwarf said
Quote:
Code:
5b 00 25 00 73 00 5d 00 5b 00 25 00 64 00 5d 00 20 00 75 00 73 00 65 00 72 00 5b 00 25 00 73 00 5d 00 20 00 66 00 61 00 69 00 6c 00 65 00 64 00 20 00 74 00 6f 00 20 00 72 00 69 00 64 00 65 00 2e 00 20 00 20 00 6e 00 6f 00 20 00 63 00 6f 00 6c 00 6c 00 61 00 72 00 5b 00 25 00 64 00 5d |
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: May 2007
Posts: 86
|
Nice... big thx.
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Jan 2007
Posts: 45
|
Thx HD, i have made the corections but i don't know what you mean by that:
"edit: and dont forget to put 0000 after text as zero char (null termitnated string rule)" |
|
|
|
|
#21 | |
|
Архивный участник
Join Date: Feb 2007
Posts: 139
|
Quote:
unicode strings look in hex like this 20 00 6e 00 6f 00 20 00 63 00 6f 00 6c 00 6c 00 61 00 72 00 5b 00 25 00 64 00 5d 00 00 00 after unicode string he must ended '\x00\x00", 00 00 its zero char in ASCII strings 1 symbol =1 byte... ex. "a" in ASCII = 61 in UNICODE 1 symbol = 2 bytes.. ex. "a" in UNICODE = 61 00 |
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
So. Short fix - 4 byte. I do easy
"5b 00 25 00 73 00 5d" [%s] -> "5b 00 20 00 20 00 5d" [ ] ![]() Line lenght without changes, bug fixed. |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Feb 2007
Posts: 139
|
some corrections..this is 4 byte fix)
"5b 00 25 00 73 00 5d 00" [%s] -> "5b 00 20 00 20 00 5d 00" [ ] and "5b 00 25 00 64 00 5d 00" [%d] -> "5b 00 20 00 20 00 5d 00" [ ] = "[ ][ ] user[%s] failed to ride. no collar[%d]" |
|
|
|
|
#24 |
|
Архивный участник
Join Date: May 2007
Posts: 23
|
Thanks! Fixed.
Anyway, I'm still being attacked...I have to test everything again
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Jan 2007
Posts: 30
|
thanks ^^
|
|
|
|
|