Bug 990247 - Conditional jump or move depends on uninitialised value(s) and Use of uninitialised value of size 4 [@ dosprintf]. r=n.nethercote.
authorJulian Seward <jseward@acm.org>
Mon, 28 Apr 2014 17:17:50 +0200
changeset 180968 ac50c746cfd34a7aeb8c70fbe7edcb201b7f3dbd
parent 180967 189ba6777c875c86cb6a71193eb98e81f5def257
child 180969 dbd7271872f71694d3dc31996b29c8c1275f1940
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersn
bugs990247
milestone31.0a1
Bug 990247 - Conditional jump or move depends on uninitialised value(s) and Use of uninitialised value of size 4 [@ dosprintf]. r=n.nethercote.
js/src/jit/Ion.cpp
--- a/js/src/jit/Ion.cpp
+++ b/js/src/jit/Ion.cpp
@@ -2759,17 +2759,17 @@ jit::Invalidate(JSContext *cx, JSScript 
             filename = "<unknown>";
 
         size_t len = strlen(filename) + 20;
         char *buf = js_pod_malloc<char>(len);
         if (!buf)
             return false;
 
         // Construct the descriptive string.
-        JS_snprintf(buf, len, "Invalidate %s:%llu", filename, script->lineno());
+        JS_snprintf(buf, len, "Invalidate %s:%u", filename, (unsigned int)script->lineno());
         cx->runtime()->spsProfiler.markEvent(buf);
         js_free(buf);
     }
 
     Vector<types::RecompileInfo> scripts(cx);
 
     switch (mode) {
       case SequentialExecution: