[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

rjw rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:15:17 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit b86a25df3c15712dc2cd5f0756c11c4b95b7255e
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue May 28 20:18:21 2002 +0000

        Fixed double free of mapped file bytes (it's freed
        by munmap).
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1225 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/Misc.subproj/WebFileDatabase.m b/WebKit/Misc.subproj/WebFileDatabase.m
index 22e9917..ee4d73a 100644
--- a/WebKit/Misc.subproj/WebFileDatabase.m
+++ b/WebKit/Misc.subproj/WebFileDatabase.m
@@ -116,7 +116,7 @@ static void URLFileReaderInit(void)
             else {
                 // On success, create data object using mapped bytes.
                 mappedLength = statInfo.st_size;
-                data = [[NSData alloc] initWithBytesNoCopy:mappedBytes length:mappedLength freeWhenDone:YES];
+                data = [[NSData alloc] initWithBytesNoCopy:mappedBytes length:mappedLength freeWhenDone:NO];
                 // ok data creation failed but we know file exists
                 // be stubborn....try to read bytes again
                 if (!data) {

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list