projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44dc2d5
)
Fix insecure use of format string.
author
Erik Verbruggen
<erik.verbruggen@digia.com>
Thu, 18 Oct 2012 08:44:09 +0000
(10:44 +0200)
committer
Simon Hausmann
<simon.hausmann@digia.com>
Thu, 18 Oct 2012 09:01:56 +0000
(11:01 +0200)
Change-Id: I6cd282d5780e418bea7a07d4639c035a98b3ed65
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qv4isel_masm.cpp
patch
|
blob
|
history
diff --git
a/qv4isel_masm.cpp
b/qv4isel_masm.cpp
index
cf0e06c
..
9741f01
100644
(file)
--- a/
qv4isel_masm.cpp
+++ b/
qv4isel_masm.cpp
@@
-147,9
+147,7
@@
void InstructionSelection::operator()(IR::Function *function)
#endif
QByteArray name = _function->name->toUtf8();
- if (name.startsWith('%'))
- name.prepend('%');
- _function->codeRef = linkBuffer.finalizeCodeWithDisassembly(name.data());
+ _function->codeRef = linkBuffer.finalizeCodeWithDisassembly("%s", name.data());
WTF::setDataFile(stderr);
#if OS(LINUX)