Hi Ask,

> But what if by accident I change it to %pA?  In between the thousands
> of messages and dozens of languages, the probability of this happening
> approaches one (Murphy's law).  I mischievously typed "%pA" instead,
> and it produced no error. 

Hmm, well mistakes can always happen, and I am not sure if there is much
more that we can do about it. 

> Now we can be pretty certain that these
> errors will happen at runtime, and the question is whether the
> formatting functions handle them gracefully, crash, or output things
> from random places in memory.

An abort or garbage output are the most likely outcomes.  The formatting
functions do perform some sanity checks, but there is only so much that
can be done.

In the end we have to rely upon bug reports from the users saying something
like "the linker crashes when I run it with this input using this translation".

Cheers
  Nick





_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to