Changeset 62b01ab in rtems


Ignore:
Timestamp:
Feb 18, 2019, 1:18:50 AM (2 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
7aa0530
Parents:
be62def9
git-author:
Chris Johns <chrisj@…> (02/18/19 01:18:50)
git-committer:
Chris Johns <chrisj@…> (02/19/19 22:08:38)
Message:

libdl/archive: Fix the config file string index while removing tailing white space.

Coverity issue 1442540

Updates #3686

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/rtl/rtl-archive.h

    rbe62def9 r62b01ab  
    104104  time_t              config_mtime;   /**< Config last modified time. */
    105105  size_t              config_length;  /**< Length the config data. */
    106   const char*         config;         /**< Config file contents. */
     106  char*               config;         /**< Config file contents. */
    107107  rtems_chain_control archives;       /**< The located archives. */
    108108} rtems_rtl_archives;
  • cpukit/libdl/rtl-archive.c

    rbe62def9 r62b01ab  
    529529        }
    530530        b = ls - 1;
    531         while (b > 0 && isspace (s[b]))
     531        while (b > 0 && isspace (s[r + b]))
    532532        {
    533           s[b] = '\0';
     533          s[r + b] = '\0';
    534534          --b;
    535535        }
Note: See TracChangeset for help on using the changeset viewer.