[rtems commit] libdl/archive: Return false on read failure.

Chris Johns chrisj at rtems.org
Tue Feb 19 22:09:43 UTC 2019


Module:    rtems
Branch:    master
Commit:    be62def98119266f882093f58b0578d8b8c26fdd
Changeset: http://git.rtems.org/rtems/commit/?id=be62def98119266f882093f58b0578d8b8c26fdd

Author:    Chris Johns <chrisj at rtems.org>
Date:      Mon Feb 18 12:12:53 2019 +1100

libdl/archive: Return false on read failure.

Coverity issue 1442641

Updates #3686

---

 cpukit/libdl/rtl-archive.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/libdl/rtl-archive.c b/cpukit/libdl/rtl-archive.c
index 07d4018..faa6616 100644
--- a/cpukit/libdl/rtl-archive.c
+++ b/cpukit/libdl/rtl-archive.c
@@ -474,6 +474,7 @@ rtems_rtl_archives_load_config (rtems_rtl_archives* archives)
       archives->config_length = 0;
       if (rtems_rtl_trace (RTEMS_RTL_TRACE_ARCHIVES))
         printf ("rtl: archive: config read error: %s\n", strerror (errno));
+      return false;
     }
 
     close (fd);




More information about the vc mailing list