[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [Bug 151336] KJS crashes when going to facebook.com signup page
From:       Bernhard Rosenkraenzer <bero () arklinux ! org>
Date:       2007-10-31 18:09:44
Message-ID: 20071031180944.31979.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=151336         




------- Additional Comments From bero arklinux org  2007-10-31 19:09 -------
Agreed... While I can understand d[i]=' '; crashes, I don't see how it could be \
"allowed" to crash in case the string doesn't contain \0s.

I also wonder if there's some hidden way to detect that a pointer leads to read-only \
memory, that would at least allow for a crappy hack that would slow things down only \
in the read-only memory case while keeping API and ABI stable...

<puke>
void KHTMLPart::write(const char *str, int len)
{
    if(__some_gcc_extension_indicating_memory_type__(str)==readonly) {
        char *gccsucks=(char*)malloc(len);
        memcpy(gccsucks, str, len);
        write(gccsucks, len);
        free(gccsucks);
        return;
    }
    // normal KHTMLPart::write code here
}
</puke>
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic