<?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>198308</bug_id>
          
          <creation_ts>2019-05-28 15:58:10 -0700</creation_ts>
          <short_desc>Correct flaky WebAuthN test cases</short_desc>
          <delta_ts>2019-05-29 10:05:09 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1539767</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-05-28 15:58:10 -0700</bug_when>
    <thetext>A series of flaky WebAuthN crashes were due to a mistake in the implementation of the MockHidConnection test object. This code is not used in production operation, and is not a security risk.

After reserving the appropriate size for the payload, and appending the Nonce to the payload, it was grown to the size of the kHidInitResponseSize constant. Unfortunately, this also changes the value the payload Vector returns when asked for its size.

Consequently, we always began writing the CtapChannelIdSize value aafter the end of the buffer we had just allocated.

I did not find any other instances of this coding issue elsewhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539768</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-05-28 15:58:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/48677219&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539825</commentid>
    <comment_count>2</comment_count>
      <attachid>370811</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-05-28 17:26:48 -0700</bug_when>
    <thetext>Created attachment 370811
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539880</commentid>
    <comment_count>3</comment_count>
      <attachid>370811</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2019-05-28 21:10:45 -0700</bug_when>
    <thetext>Comment on attachment 370811
Patch

r=me assuming the test failures aren&apos;t caused by this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539896</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-05-28 22:54:30 -0700</bug_when>
    <thetext>Boy it would be hard to imagine this change affecting that Download test. I’ll run locally under ASan and confirm the change doesn’t trigger that failure before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539969</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-05-29 09:37:50 -0700</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #3)
&gt; Comment on attachment 370811 [details]
&gt; Patch
&gt; 
&gt; r=me assuming the test failures aren&apos;t caused by this change.

Yes, that flaky timeout is well known (see Bug 198298).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539984</commentid>
    <comment_count>6</comment_count>
      <attachid>370811</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-05-29 10:05:08 -0700</bug_when>
    <thetext>Comment on attachment 370811
Patch

Clearing flags on attachment: 370811

Committed r245852: &lt;https://trac.webkit.org/changeset/245852&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539985</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-05-29 10:05:09 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>370811</attachid>
            <date>2019-05-28 17:26:48 -0700</date>
            <delta_ts>2019-05-29 10:05:08 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-198308-20190528172647.patch</filename>
            <type>text/plain</type>
            <size>2144</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQ1ODE3CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IDYzYzUwMjFjYjQ1NWZkYWZm
MWUwYjU3YzAyYjQ0NDcyZGY0ZTFmM2IuLjQ1YzdmM2U0MjcxYjE5NzQ1OWQxNGY5YTUxMDI0NzVm
ZTNhYmUzZGQgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMjAgQEAKKzIwMTktMDUtMjggIEJyZW50IEZ1
bGdoYW0gIDxiZnVsZ2hhbUBhcHBsZS5jb20+CisKKyAgICAgICAgQ29ycmVjdCBmbGFreSBXZWJB
dXRoTiB0ZXN0IGNhc2VzCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVn
LmNnaT9pZD0xOTgzMDgKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzQ4Njc3MjE5PgorCisgICAg
IC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YgbV9jb25maWd1cmF0aW9uLmhpZC0+ZXJyb3IgPT0gTW9jazo6RXJyb3I6Oldyb25n
Q2hhbm5lbElkKQogICAgICAgICAgICAgY2hhbm5lbC0tOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>