flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > quoted string bug?

Author
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 23 Jun 2004, 06:49
just by accident, I found that this code crashes FASMW on compile:
Code:
format ELF executable
entry start

section readable writeable

html:
        db 'Content-type: text/html',0Ah,0Ah
        db '<html><head><title>Fasm Worldwide</title></head>',0Ah
        db '<center><body bgcolor=Black text=Green>',0Ah
        db '<font face="sans-serif" size="10">',0Ah

; proably error is caused in line below
        db '<a href="http://flatassembler.net">fasm is everywhere</a>", 0Ah  
        db '<br>at www.decard.net too!',0Ah
        db '</center></font></body></html>'
  .size = $ - html - 1

section readable executable

start:
        mov     eax,4
        mov     ebx,1
        mov     ecx,html
        mov     edx,html.size
        int     0x80

        mov     eax,1
        xor     ebx,ebx
        int     0x80    
Post 23 Jun 2004, 06:49
View user's profile Send private message Visit poster's website Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 23 Jun 2004, 08:26
Shouldn't it be

db '<a href="http://flatassembler.net">fasm is everywhere</a>', 0Ah
Post 23 Jun 2004, 08:26
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 23 Jun 2004, 12:37
Yes, but the problem is that fasmw should not crash.
Post 23 Jun 2004, 12:37
View user's profile Send private message Yahoo Messenger Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 23 Jun 2004, 14:59
exactly Wink
Post 23 Jun 2004, 14:59
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8349
Location: Kraków, Poland
Tomasz Grysztar 23 Jun 2004, 15:30
Check out fasmw 0.91.2 Wink
Post 23 Jun 2004, 15:30
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.