<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>81509</bug_id>
          
          <creation_ts>2012-03-19 07:32:59 -0700</creation_ts>
          <short_desc>[Qt] fast/table/max-width-integer-overflow.html differs on 32- and 64-bit systems</short_desc>
          <delta_ts>2014-02-03 03:20:26 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>67976</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="János Badics">jbadics</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
    
    <cc>jbadics</cc>
    
    <cc>macpherson</cc>
    
    <cc>ossy</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>581769</commentid>
    <comment_count>0</comment_count>
    <who name="János Badics">jbadics</who>
    <bug_when>2012-03-19 07:32:59 -0700</bug_when>
    <thetext>From revision #111156 32-bit and 64-bit QtWebKit versions give different results on fast/table/max-width-integer-overflow-expected.html

Thist test should be put on the skipped list since there is no solution for both the 32-bit and 64-bit versions to give the same results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581806</commentid>
    <comment_count>1</comment_count>
    <who name="János Badics">jbadics</who>
    <bug_when>2012-03-19 08:02:10 -0700</bug_when>
    <thetext>The expected.txt in r111156 works fine on 32-bit systems.
But on 64-bit systems some modifications should be made to work well:

diff --git a/LayoutTests/platform/qt/fast/table/max-width-integer-overflow-expected.txt b/LayoutTests/platform/qt/fast/table/max-width-integer-overflow-expected.txt
index 9171655..392ec4c 100644
--- a/LayoutTests/platform/qt/fast/table/max-width-integer-overflow-expected.txt
+++ b/LayoutTests/platform/qt/fast/table/max-width-integer-overflow-expected.txt
@@ -6,16 +6,16 @@ layer at (0,0) size 800x600
       RenderTable {TABLE} at (0,0) size 780x24 [bgcolor=#FF0000]
         RenderTableSection {TBODY} at (0,0) size 780x24
           RenderTableRow {TR} at (0,0) size 780x24
-            RenderTableCell {TD} at (0,0) size 770x24 [r=0 c=0 rs=1 cs=1]
-              RenderTable {TABLE} at (0,0) size 770x24
-                RenderTableSection {TBODY} at (0,0) size 770x24
-                  RenderTableRow {TR} at (0,0) size 770x24
-                    RenderTableCell {TD} at (0,0) size 770x24 [r=0 c=0 rs=1 cs=1]
-                      RenderBlock {DIV} at (0,0) size 770x24
-                        RenderTable {TABLE} at (0,0) size 770x24 [bgcolor=#008000]
-                          RenderTableSection {TBODY} at (0,0) size 770x24
-                            RenderTableRow {TR} at (0,2) size 770x20
-                              RenderTableCell {TD} at (2,11) size 762x2 [r=0 c=0 rs=1 cs=1]
-                              RenderTableCell {TD} at (766,11) size 2x2 [r=0 c=1 rs=1 cs=1]
-            RenderTableCell {TD} at (770,0) size 10x24 [r=0 c=1 rs=1 cs=1]
+            RenderTableCell {TD} at (0,0) size 780x24 [r=0 c=0 rs=1 cs=1]
+              RenderTable {TABLE} at (0,0) size 780x24
+                RenderTableSection {TBODY} at (0,0) size 780x24
+                  RenderTableRow {TR} at (0,0) size 780x24
+                    RenderTableCell {TD} at (0,0) size 780x24 [r=0 c=0 rs=1 cs=1]
+                      RenderBlock {DIV} at (0,0) size 780x24
+                        RenderTable {TABLE} at (0,0) size 780x24 [bgcolor=#008000]
+                          RenderTableSection {TBODY} at (0,0) size 780x24
+                            RenderTableRow {TR} at (0,2) size 780x20
+                              RenderTableCell {TD} at (2,11) size 772x2 [r=0 c=0 rs=1 cs=1]
+                              RenderTableCell {TD} at (776,11) size 2x2 [r=0 c=1 rs=1 cs=1]
+            RenderTableCell {TD} at (780,0) size 10x24 [r=0 c=1 rs=1 cs=1]
               RenderBlock {DIV} at (0,0) size 10x24 [bgcolor=#008000]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581808</commentid>
    <comment_count>2</comment_count>
      <attachid>132585</attachid>
    <who name="János Badics">jbadics</who>
    <bug_when>2012-03-19 08:08:37 -0700</bug_when>
    <thetext>Created attachment 132585
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581809</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-19 08:10:11 -0700</bug_when>
    <thetext>Attachment 132585 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;LayoutTests/ChangeLog&apos;, u&apos;LayoutTests/plat...&quot; exit_code: 1
LayoutTests/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>582796</commentid>
    <comment_count>4</comment_count>
      <attachid>132585</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-03-19 23:36:04 -0700</bug_when>
    <thetext>Comment on attachment 132585
proposed patch

Skip landed in http://trac.webkit.org/changeset/111363</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>582797</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-03-19 23:42:12 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; The expected.txt in r111156 works fine on 32-bit systems.
&gt; But on 64-bit systems some modifications should be made to work well:

Before r111156, it passed on 32 bit and 64 bit too. After r111156, it passes 
on 32 bit, but fails on 64 bit. If we do the same change on Qt as you did
on Mac by r111156, it will make the test pass on 64 bit, and fail on 32 bit.
 
&gt; diff --git a/LayoutTests/platform/qt/fast/table/max-width-integer-overflow-expected.txt b/LayoutTests/platform/qt/fast/table/max-width-integer-overflow-expected.txt

--- : correct expected result on 32 bit always, and on 64 bit before r111156
+++ : correct expected result on 64 bit after r111156</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>582798</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-03-19 23:43:28 -0700</bug_when>
    <thetext>Any idea? Maybe you can reproduce it on other 32/64 bit platforms too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>582809</commentid>
    <comment_count>7</comment_count>
    <who name="Luke Macpherson">macpherson</who>
    <bug_when>2012-03-20 00:02:42 -0700</bug_when>
    <thetext>Just to make sure we understand what&apos;s going on, we used to clamp Lengths to 2^28 bits. Lengths themselves have supported the full range of int (and also float) lengths for a while, but we were artificially clamping some values to 2^28 anyway. https://bugs.webkit.org/show_bug.cgi?id=67976 removed that clamping, so the full range of values supported by Length can be used.

If you&apos;re seeing different values on 32 and 64 bit systems, that must mean that sizeof(int) is different on those systems - which is surprising to me, since a lot of webkit code seems to assume that sizeof(int)==4 (or at least ==sizeof(float)) for data structure packing.

In any case, I don&apos;t think it&apos;s a bug, at least insofar as the range of lengths is not defined by the CSS spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>975425</commentid>
    <comment_count>8</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2014-02-03 03:20:26 -0800</bug_when>
    <thetext>=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>132585</attachid>
            <date>2012-03-19 08:08:37 -0700</date>
            <delta_ts>2012-03-19 23:36:04 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>gard0319_3.patch</filename>
            <type>text/plain</type>
            <size>1094</size>
            <attacher name="János Badics">jbadics</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCBmMjU3MTJhLi4wNzdjY2UzIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTItMDMt
MTkgIErDoW5vcyBCYWRpY3MgIDxqYmFkaWNzQGluZi51LXN6ZWdlZC5odT4KKworICAgICAgICBm
YXN0L3RhYmxlL21heC13aWR0aC1pbnRlZ2VyLW92ZXJmbG93Lmh0bWwgc2hvdWxkIGJlIHNraXBw
ZWQgYmVjYXVzZSBpdCBnaXZlcworICAgICAgICBkaWZmZXJlbnQgcmVzdWx0cyBvbiAzMi0gYW5k
IDY0LWJpdCBzeXN0ZW1zLgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgor
CisgICAgICAgICogcGxhdGZvcm0vcXQvU2tpcHBlZDoKKwogMjAxMi0wMy0xOSAgQmFsYXpzIEFu
a2VzICA8YmFua0BpbmYudS1zemVnZWQuaHU+CiAKICAgICAgICAgW1F0XSBHYXJkZW5pbmcuCmRp
ZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9wbGF0Zm9ybS9xdC9Ta2lwcGVkIGIvTGF5b3V0VGVzdHMv
cGxhdGZvcm0vcXQvU2tpcHBlZAppbmRleCAwMjhhO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