Changeset 92422be in rtems


Ignore:
Timestamp:
Mar 10, 2015, 1:54:30 PM (5 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
d55d7a0
Parents:
9d0913d1
git-author:
Gedare Bloom <gedare@…> (03/10/15 13:54:30)
git-committer:
Gedare Bloom <gedare@…> (05/27/15 15:21:12)
Message:

dosfs: avoid buffer-overread. closes #2292.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/msdos_misc.c

    r9d0913d1 r92422be  
    10561056        if (is_first_entry) {
    10571057            for (chars_in_entry = 0;
    1058                  (    entry_string_buf[chars_in_entry] != 0x0000
    1059                   && chars_in_entry < MSDOS_LFN_LEN_PER_ENTRY );
     1058                 (   chars_in_entry < MSDOS_LFN_LEN_PER_ENTRY
     1059                  && entry_string_buf[chars_in_entry] != 0x0000);
    10601060                  ++chars_in_entry) {
    10611061                ;
Note: See TracChangeset for help on using the changeset viewer.