-
`printf` can be used for exploits if an attacker controls the format string:
```c++
char *input = ; // attacker controlled
print(input);
```
There are three main format options that can be used…
-
#include
int main() {
int num_pessoas = 5;
float altura, peso, imc;
printf("Este programa calcula o IMC de 5 pessoas.\n\n");
for (int i = 1; i
-
`#include
#include
int main() {
int a = 5;
int b = 10;
printf("This is a test program.\n")
if (a > b {
printf("a is greater than b\n");
else {
printf("…
-
ksh93's printf(1) builtin somehow turns "\x20" (space character in UTF-8) into garbage:
Testcase:
```
$ (LC_ALL=en_US.UTF-8 ksh93 -c "printf 'foo\x20bar\n'")
foo₺r
$ (LC_ALL=en_US.UTF-8 bash -c…
-
Hello, I've a deadlock using the printf in two differents thread with the usb stdio configured.
I'm using:
- FreeRTOS on "smp" branch
- Pico sdk 1.5.1
A simple main that causes the issue is the …
-
MSVCRT functions are separated into ANSI and UNICODE either.
-
I'm trying to fake out printf's in my production code, but any statements without arguments are printed out. Here's an example file:
```
#include "CppUTest/TestHarness.h"
#include
#include "ff…
-
Imported from SourceForge on 2024-07-06 18:09:11
Created by **[robert_dodier](https://sourceforge.net/u/robert_dodier/)** on 2024-03-04 13:08:37
Original: https://sourceforge.net/p/maxima/bugs/4271
-…
-
## Context
Observe the following code, using the build in libraries:
```
main :: proc () {
some_thread_func :: proc () {
fmt.printf("Thread 2 started");
time.sleep(10 * time.Second);
…
-
Currently, the Catala compiler exits at the first error it encounters. It would be nice to only exit when the errors it has found forbid it to continue processing, so that it displays multiple related…