<?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>113036</bug_id>
          
          <creation_ts>2013-03-22 03:11:54 -0700</creation_ts>
          <short_desc>E: webkitgtk3 missing-sentinel Source/[...]/TestMain.cpp:47</short_desc>
          <delta_ts>2014-09-10 13:26:53 -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>528+ (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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>111848</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Dominique Leuenberger">dimstar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>gustavo</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>861300</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Leuenberger">dimstar</who>
    <bug_when>2013-03-22 03:11:54 -0700</bug_when>
    <thetext>the open Build Service cancels the build of webkitgtk 1.11.92 (raising known compiler errors causing larger issues or security issues) with:

E: webkitgtk3 missing-sentinel Source/WebKit2/UIProcess/API/gtk/tests/TestMain.cpp:47

The compiler output for this build-root check was:

[24320s] Source/WebKit2/UIProcess/API/gtk/tests/TestMain.cpp: In function &apos;void removeNonEmptyDirectory(const char*)&apos;:
[24320s] Source/WebKit2/UIProcess/API/gtk/tests/TestMain.cpp:47:75: warning: missing sentinel in function call [-Wformat]

The code in question is:

        GOwnPtr&lt;char&gt; filePath(g_build_filename(directoryPath, fileName, 0)); 

=&gt; (int) 0 is not to be used as sentinel in this case, but NULL should be the sentinel
(see also https://developer.gnome.org/glib/2.34/glib-Miscellaneous-Utility-Functions.html#g-build-filename :
gchar *             g_build_filename                    (const gchar *first_element,
                                                         ...);
... :	remaining elements in path, terminated by NULL


The commit introducing this warning into webkitgtk was:
http://trac.webkit.org/changeset/145528</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861305</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2013-03-22 03:24:09 -0700</bug_when>
    <thetext>Dominique will provide the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861352</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2013-03-22 04:52:05 -0700</bug_when>
    <thetext>I blame the style checker :-/ sorry :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861386</commentid>
    <comment_count>3</comment_count>
      <attachid>194524</attachid>
    <who name="Dominique Leuenberger">dimstar</who>
    <bug_when>2013-03-22 06:00:18 -0700</bug_when>
    <thetext>Created attachment 194524
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>862348</commentid>
    <comment_count>4</comment_count>
      <attachid>194524</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2013-03-24 05:42:57 -0700</bug_when>
    <thetext>Comment on attachment 194524
Patch

This doesn&apos;t apply on trunk, because it depends on other patches not landed yet. I&apos;ll commit it manually in the stable branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1034384</commentid>
    <comment_count>5</comment_count>
    <who name="Dominique Leuenberger">dimstar</who>
    <bug_when>2014-09-10 13:26:53 -0700</bug_when>
    <thetext>These seems obsolete for a long time..</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>194524</attachid>
            <date>2013-03-22 06:00:18 -0700</date>
            <delta_ts>2013-03-24 05:42:57 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-113036-20130322135605.patch</filename>
            <type>text/plain</type>
            <size>1392</size>
            <attacher name="Dominique Leuenberger">dimstar</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE0NjU5NikKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDEzLTAzLTIyICBEb21pbmlx
dWUgTGV1ZW5iZXJnZXIgIDxkaW1zdGFyQG9wZW5zdXNlLm9yZz4KKworICAgICAgICBFOiB3ZWJr
aXRndGszIG1pc3Npbmctc2VudGluZWwgU291cmNlL1suLi5dL1Rlc3RNYWluLmNwcDo0NworCWdf
YnVpbGRfZmlsZW5hbWUgdGFrZXMgYSBOVUxMIHNlbnRpbmVsLgorCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMTMwMzYKKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIFVJUHJvY2Vzcy9BUEkvZ3RrL3Rlc3Rz
L1Rlc3RNYWluLmNwcDoKKyAgICAgICAgKHJlbW92ZU5vbkVtcHR5RGlyZWN0b3J5KToKKwogMjAx
My0wMy0xOSAgQ2FybG9zIEdhcmNpYSBDYW1wb3MgIDxjZ2FyY2lhQGlnYWxpYS5jb20+CiAKICAg
ICAgICAgW0dUS10gQWRkIHBhZGRpbmcgdG8gYWxsIHB1YmxpYyBjbGFzcyBzdHJ1Y3RzIGZvciBm
dXR1cmUgZXhwYW5zaW9uIHdpdGhvdXQgYnJlYWtpbmcgQUJJCkluZGV4OiBTb3VyY2UvV2ViS2l0
Mi9VSVByb2Nlc3MvQVBJL2d0ay90ZXN0cy9UZXN0TWFpbi5jcHAKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL1dlYktpdDIvVUlQcm9jZXNzL0FQSS9ndGsvdGVzdHMvVGVzdE1haW4uY3BwCShyZXZpc2lv
biAxNDY1OTYpCisrKyBTb3VyY2UvV2ViS2l0Mi9VSVByb2Nlc3MvQVBJL2d0ay90ZXN0cy9UZXN0
TWFpbi5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTQ0LDcgKzQ0LDcgQEAgc3RhdGljIHZvaWQgcmVt
b3ZlTm9uRW1wdHlEaXJlY3RvcnkoY29ucwogICAgIGdfYXNzZXJ0KGRpcmVjdG9yeSk7CiAgICAg
Y29uc3QgY2hhciogZmlsZU5hbWU7CiAgICAgd2hpbGUgKChmaWxlTmFtZSA9IGdfZGlyX3JlYWRf
bmFtZShkaXJlY3RvcnkpKSkgewotICAgICAgICBHT3duUHRyPGNoYXI+IGZpbGVQYXRoKGdfYnVp
bGRfZmlsZW5hbWUoZGlyZWN0b3J5UGF0aCwgZmlsZU5hbWUsIDApKTsKKyAgICAgICAgR093blB0
cjxjaGFyPiBmaWxlUGF0aChnX2J1aWxkX2ZpbGVuYW1lKGRpcmVjdG9yeVBhdGgsIGZpbGVOYW1l
LCBOVUxMKSk7CiAgICAgICAgIGdfdW5saW5rKGZpbGVQYXRoLmdldCgpKTsKICAgICB9CiAgICAg
Z19kaXJfY2xvc2UoZGlyZWN0b3J5KTsK
</data>
<flag name="review"
          id="216298"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
    <flag name="commit-queue"
          id="216520"
          type_id="3"
          status="-"
          setter="cgarcia"
    />
          </attachment>
      

    </bug>

</bugzilla>