jnz / q3vm

Q3VM - Single file (vm.c) bytecode virtual machine/interpreter for C-language input
GNU General Public License v2.0
830 stars 57 forks source link

q3asm: Fix format specifier for pointer #35

Closed szsam closed 1 year ago

szsam commented 1 year ago

In the following printf call report("Stats for hashtable %08X", H); '%08X' requires an argument of type 'unsigned', but the actual argument is a pointer. This causes unpredictable behavior on 64-bit platform.

Machiry commented 6 months ago

Hello @jnz ,

My name is Aravind Machiry, Assistant Professor at Purdue's ECE Department.

Thank you for considering this pull request. This pull request was the result of our on-going research work (along with @szsam) to improve the security and quality of open-source embedded projects.

In addition to scanning codebases with CodeQL, we are also doing a short (~4 minutes) survey to understand the use of static analysis tools like gcc -Wall and CodeQL in embedded software projects.

It would greatly benefit our research if you could fill this anonymous survey: https://purdue.ca1.qualtrics.com/jfe/form/SV_0OnXfr5plPe1QCa

Thank you, Aravind