This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/23446] vfprintf() segfault with fmt "%m$n and %m$d" or "%m$s and %m$d" to a same parameter.


https://sourceware.org/bugzilla/show_bug.cgi?id=23446

--- Comment #4 from Ming Yuan <minhray3153 at 163 dot com> ---
(In reply to Andreas Schwab from comment #1)
> Arguments must match the expected type.  %n expects a pointer.

Or I can use the poc:
int main(){
  int n = 0;
  printf("%1$n%1$d\n", &n);
}

n is a pointer, but it also causes a crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]