Top "Format-string" questions

How to escape the % (percent) sign in C's printf?

How do you escape the % sign when using printf in C? printf("hello\%"); /* not like this */

c printf format-string
How can a Format-String vulnerability be exploited?

I was reading about vulnerabilities in code and came across this Format-String Vulnerability. Wikipedia says: Format string bugs most commonly …

c security format-string
Platform independent size_t Format specifiers in c?

I want to print out a variable of type size_t in C but it appears that size_t is …

c platform-independent size-t format-string format-specifiers
Way to format strings with "?" parameters to full string in java?

For example I want to implement class with method public class Logger { public void info(String message, String[] params) { } } If …

java string logging parameters format-string
How can I use a percent % in FormatString without it multiplying by 100?

I would like to format an integer as a percent without it multiplying by 100 as shown here. Because my source …

c# format-string
jqplot format tooltip values

I want to have a tooltip hover highlight thingy in jqplot. The problem is that I want it to give …

hover tooltip jqplot format-string jqplot-highlighter
How to repeat characters in Python without string concatenation?

I'm currently writing a short program that does frequency analysis. However, there's one line that is bothering me: "{0[0]} | " + "[]" * num_occurrences + " …

python string concatenation format-string
How to write value into an address in format string attack

I'm taking a security course which needs us to do format string attack on an unix virtual machine. The vulnerability …

c string security format-string
Format strings and using %n to overwrite memory address with specific value

I am reading about and trying to learn format string vulnerabilities. I have a vulnerable function and I understand the …

c security format-string
JQplot Format String

Can I please have some help to format the string on the Y Axis that has a '%' sign. …

javascript jqplot axis format-string