<?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>148423</bug_id>
          
          <creation_ts>2015-08-25 02:19:34 -0700</creation_ts>
          <short_desc>[WebKit2] add some protection code at IndexedDB</short_desc>
          <delta_ts>2022-07-11 15:04:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jincheol Jo">jincheol.jo</reporter>
          <assigned_to name="Jincheol Jo">jincheol.jo</assigned_to>
          <cc>andersca</cc>
    
    <cc>beidson</cc>
    
    <cc>bfulgham</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>ossy</cc>
    
    <cc>sam</cc>
    
    <cc>sihui_liu</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1120554</commentid>
    <comment_count>0</comment_count>
    <who name="Jincheol Jo">jincheol.jo</who>
    <bug_when>2015-08-25 02:19:34 -0700</bug_when>
    <thetext>Metadata pointer seems to need a null protection code.
Its member is accessed in next line.
I guess it can trigger crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1120555</commentid>
    <comment_count>1</comment_count>
      <attachid>259832</attachid>
    <who name="Jincheol Jo">jincheol.jo</who>
    <bug_when>2015-08-25 02:24:32 -0700</bug_when>
    <thetext>Created attachment 259832
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1120838</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-08-25 21:49:23 -0700</bug_when>
    <thetext>Are you just offering this patch because of code inspection, or do you actually have a reproducible case of the null deref crash?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1120905</commentid>
    <comment_count>3</comment_count>
    <who name="Jincheol Jo">jincheol.jo</who>
    <bug_when>2015-08-26 02:51:40 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Are you just offering this patch because of code inspection, or do you
&gt; actually have a reproducible case of the null deref crash?

When I blocked all function body code of KeyedEncoder and KeyedDecoder for my test, it triggered crash in that line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1120955</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-08-26 09:08:24 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Are you just offering this patch because of code inspection, or do you
&gt; &gt; actually have a reproducible case of the null deref crash?
&gt; 
&gt; When I blocked all function body code of KeyedEncoder and KeyedDecoder for
&gt; my test, it triggered crash in that line.

For what test? This patch has no test.

And what do you mean &quot;blocked all function body code of KeyedEncoder and KeyedDecoder&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1120960</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-08-26 09:20:36 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; Are you just offering this patch because of code inspection, or do you
&gt; &gt; &gt; actually have a reproducible case of the null deref crash?
&gt; &gt; 
&gt; &gt; When I blocked all function body code of KeyedEncoder and KeyedDecoder for
&gt; &gt; my test, it triggered crash in that line.
&gt; 
&gt; For what test? This patch has no test.

Since I hadn&apos;t explicitly stated this, I will now - Patches require tests unless there&apos;s a darned good reason why they&apos;re untestable.

It sounds like you have a way of triggering the crash, we&apos;d like a test that triggers the crash along with the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121164</commentid>
    <comment_count>6</comment_count>
    <who name="Jincheol Jo">jincheol.jo</who>
    <bug_when>2015-08-26 19:31:59 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; Are you just offering this patch because of code inspection, or do you
&gt; &gt; &gt; &gt; actually have a reproducible case of the null deref crash?
&gt; &gt; &gt; 
&gt; &gt; &gt; When I blocked all function body code of KeyedEncoder and KeyedDecoder for
&gt; &gt; &gt; my test, it triggered crash in that line.
&gt; &gt; 
&gt; &gt; For what test? This patch has no test.
&gt; 
&gt; Since I hadn&apos;t explicitly stated this, I will now - Patches require tests
&gt; unless there&apos;s a darned good reason why they&apos;re untestable.
&gt; 
&gt; It sounds like you have a way of triggering the crash, we&apos;d like a test that
&gt; triggers the crash along with the patch.

(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; Are you just offering this patch because of code inspection, or do you
&gt; &gt; &gt; &gt; actually have a reproducible case of the null deref crash?
&gt; &gt; &gt; 
&gt; &gt; &gt; When I blocked all function body code of KeyedEncoder and KeyedDecoder for
&gt; &gt; &gt; my test, it triggered crash in that line.
&gt; &gt; 
&gt; &gt; For what test? This patch has no test.
&gt; 
&gt; Since I hadn&apos;t explicitly stated this, I will now - Patches require tests
&gt; unless there&apos;s a darned good reason why they&apos;re untestable.
&gt; 
&gt; It sounds like you have a way of triggering the crash, we&apos;d like a test that
&gt; triggers the crash along with the patch.
Thanks for quick reply, I will prepare a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1151778</commentid>
    <comment_count>7</comment_count>
      <attachid>259832</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-12-31 14:42:24 -0800</bug_when>
    <thetext>Comment on attachment 259832
Patch

Removing this from the request queue, pending a testcase.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>259832</attachid>
            <date>2015-08-25 02:24:32 -0700</date>
            <delta_ts>2015-12-31 14:42:24 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-148423-20150825182421.patch</filename>
            <type>text/plain</type>
            <size>1904</size>
            <attacher name="Jincheol Jo">jincheol.jo</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg4OTAyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggNGMwODY5ZTA5NTYzMzQx
NDI0ZjEyNzJjNjg1YTgyOGFiMWMwMTBiMi4uZmUyYTg0MDhkMmU5NWQ1ZGJhZmMyYzdhMmNkMjg4
MDk5NTBkN2I5ZiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3IEBACisyMDE1LTA4LTI1ICBKaW5j
aGVvbCBKbyAgPGppbmNoZW9sLmpvQG5hdmVyY29ycC5jb20+CisKKyAgICAgICAgW1dlYktpdDJd
IGFkZCBzb21lIHByb3RlY3Rpb24gY29kZSBhdCBJbmRleGVkREIuCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDg0MjMuCisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgTWV0YWRhdGEgcG9pbnRlciBzZWVtcyB0
byBuZWVkIGEgbnVsbCB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JLaXQyL0RhdGFi
YXNlUHJvY2Vzcy9JbmRleGVkREIvc3FsaXRlL1VuaXF1ZUlEQkRhdGFiYXNlQmFja2luZ1N0b3Jl
U1FMaXRlLmNwcApAQCAtNDQ3LDggKzQ0NywxMSBAQCBzdGQ6OnVuaXF1ZV9wdHI8SURCRGF0YWJh
c2VNZXRhZGF0YT4gVW5pcXVlSURCRGF0YWJhc2VCYWNraW5nU3RvcmVTUUxpdGU6OmdldE9yRQog
ICAgIGlmICghbWV0YWRhdGEpCiAgICAgICAgIG1ldGFkYXRhID0gY3JlYXRlQW5kUG9wdWxhdGVJ
bml0aWFsTWV0YWRhdGEoKTsKIAotICAgIGlmICghbWV0YWRhdGEpCisgICAgaWYgKCFtZXRhZGF0
YSkgewogICAgICAgICBMT0dfRVJST1IoIlVuYWJsZSB0byBlc3RhYmxpc2ggSURCIGRhdGFiYXNl
IGF0IHBhdGggJyVzJyIsIGRiRmlsZW5hbWUudXRmOCgpLmRhdGEoKSk7CisgICAgICAgIG1fc3Fs
aXRlREIgPSBudWxscHRyOworICAgICAgICByZXR1cm4gbnVsbHB0cjsKKyAgICB9CiAKICAgICAv
LyBUaGUgZGF0YWJhc2UgaWQgaXMgYSBydW50aW1lIGNvbmNlcHQgYW5kIGRvZXNuJ3QgbmVlZCB0
byBiZSBzdG9yZWQgaW4gdGhlIG1ldGFkYXRhIGRhdGFiYXNlLgogICAgIG1ldGFkYXRhLT5pZCA9
IGdlbmVyYXRlRGF0YWJhc2VJZCgpOwo=
</data>
<flag name="review"
          id="285020"
          type_id="1"
          status="-"
          setter="mcatanzaro"
    />
          </attachment>
      

    </bug>

</bugzilla>