mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Handle null pointer returned by of_overlay_fix_path properly
@ 2022-06-22  8:07 Michael Riesch
  2022-06-29  7:37 ` Ahmad Fatoum
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Riesch @ 2022-06-22  8:07 UTC (permalink / raw)
  To: Barebox

Hi all,

The function of_overlay_fix_path returns NULL in certain error cases but
of_overlay_apply_symbols (which is the only caller) does not check the
return value. For broken overlays this may result in an exception, which
is probably not the best way to deal with this situation. I am not sure
though what would be a good way to handle this error condition. Since
the call happens in a loop, we may want to ignore the symbol in question
and continue? Any thoughts?

Best regards,
Michael



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-29  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22  8:07 Handle null pointer returned by of_overlay_fix_path properly Michael Riesch
2022-06-29  7:37 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox