bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Translatable strings not marked 'c-format'


From: Nick Clifton
Subject: Re: Translatable strings not marked 'c-format'
Date: Wed, 27 Jun 2018 11:28:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]