You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XMPMeta.cpp: fix macro to cast argument to match type
The OutProcHexInt(num) macro fills in its argument via
snprintf's "..." varargs part, and the type at the use
site depends on the passed-in types. This might cause
wrong types on the stack that cause undefined behavior
in the snprintf() function, and reading past memory,
outputting garbage.
Cast the macro argument to (long) to match the %lX
format string first, to get the expected type width.
0 commit comments