encoding: fix log_alert_exit(): do not treat error as format string
This is rather a cosmetic change aimed to make ASAN / Coverity happy. In general, we never pass any input from an untrusted source. Change-Id: I26d654da4c3bf5fd86a298c3027fd9820c932308
This commit is contained in:
parent
4590b91728
commit
f6b83a24a3
|
@ -432,7 +432,7 @@ int Encoding::write_immediate_assignment_reject(
|
||||||
|
|
||||||
static inline void log_alert_exit(const char * error)
|
static inline void log_alert_exit(const char * error)
|
||||||
{
|
{
|
||||||
LOGP(DRLCMACUL, LOGL_ERROR, error);
|
LOGP(DRLCMACUL, LOGL_ERROR, "%s", error);
|
||||||
pcu_tx_txt_ind(PCU_OML_ALERT, error);
|
pcu_tx_txt_ind(PCU_OML_ALERT, error);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue