Deprecated: Function set_magic_quotes_runtime() is deprecated in /home4/mfoster/public_html/cb/forums/include/common.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 34
Cross-Browser.com / xag.exe crashed by multi-byte character !

Cross-Browser.com

X Library Forums

You are not logged in.

Announcement

New user registration is currently disabled.

#1 February 8, 2010 2:57:15 am

misshiki
New Member
Registered: March 19, 2008
Posts: 8

xag.exe crashed by multi-byte character !

I found a trouble about xag.exe.
I wrote a script file like below...

xGetElementById("a div").innerHTML = "Multibyte characters(Japanese characters)";

Then I made a project file for xag , ran xag.exe and the program crashed!

I rewrote my codes like below and ran xag.exe.

xGetElementById("a div").innerHTML = "ascii characters(Not Japanese characters)";

Then the program finished normally.

So I think that multibyte-characters make xag.exe crashed.

Is any way to solve this problem ?

Offline

 

#2 February 8, 2010 3:27:15 am

krumpet
Member
Registered: January 24, 2010
Posts: 19
Website

Re: xag.exe crashed by multi-byte character !

what encoding do you use for the source file? utf-8 or something else?

Offline

 

#3 February 8, 2010 4:38:47 am

krumpet
Member
Registered: January 24, 2010
Posts: 19
Website

Re: xag.exe crashed by multi-byte character !

Hi misshiki,

I tested on both window xp and ubuntu 9.10 with a utf-8 encoded source file.

xGetElementById("a div").innerHTML = "non-ascii(私はガラスを食べられます。それは私を傷つけません。)";



and it worked in both cases.

I am lead to believe that the Japanese phrase means "I Can Eat Glass"

Last edited by krumpet (February 8, 2010 4:41:14 am)

Offline

 

#4 February 8, 2010 8:27:10 am

misshiki
New Member
Registered: March 19, 2008
Posts: 8

Re: xag.exe crashed by multi-byte character !

Hi krumpet, Thank you for early reply !!

I tested your code on windows Vista with utf-8 encoding.

xGetElementById("a div").innerHTML = "non-ascii(私はガラスを食べられます。それは私を傷つけません。)";


And xag.exe worked very well !

(and you are right about the phrase's meaning ! "I can eat glass. It doesn't hurt me.")

I'm sorry , I mistook . Japanese characters are innocent.

So I tested my code again, and picked up a code.
The code has very long string(about 320 bytes long). And I tested similar code.

xGetElementById("a div").innerHTML="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";



This code is about 250 bytes long , and xag.exe crashed.
This is why xag crashed !?

Offline

 

#5 February 8, 2010 10:34:51 am

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: xag.exe crashed by multi-byte character !

Hi misshiki, and thanks very much to krumpet for helping out here!

I'll take a look at this ASAP.

Offline

 

#6 February 9, 2010 12:03:35 pm

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: xag.exe crashed by multi-byte character !

I found the problem - will post back soon.

Offline

 

#7 February 11, 2010 7:57:49 pm

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: xag.exe crashed by multi-byte character !

I've made a new release which includes bug fixes and improvements to xag. Sorry for taking so long to get to it.

That long string literal was being parsed as one token and was overflowing a buffer.

Offline

 

#8 February 13, 2010 12:31:38 am

misshiki
New Member
Registered: March 19, 2008
Posts: 8

Re: xag.exe crashed by multi-byte character !

Thank you for update !
I try again with new xag.exe and it works normaly !!

Offline

 

Board footer

Powered by PunBB 1.2.15
Copyright © 2002–2005 Rickard Andersson

Expand Restore Select Format Eval Load