Changeset 6ef96da in rtems


Ignore:
Timestamp:
Aug 25, 2010, 8:31:43 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d4d6bd81
Parents:
2b5bd836
Message:

2010-08-25 Sebastian Huber <sebastian.huber@…>

CID 114/SECURE_CODING

  • libblock/src/media.c: Avoid strcpy().
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r2b5bd836 r6ef96da  
     12010-08-25      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        CID 114/SECURE_CODING
     4        * libblock/src/media.c: Avoid strcpy().
     5
    162010-08-25      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/libblock/src/media.c

    r2b5bd836 r6ef96da  
    245245    item->parent = parent;
    246246    item->disk_path = (char *) item + sizeof(*item);
    247     strcpy(item->disk_path, disk_path);
     247    memcpy(item->disk_path, disk_path, disk_path_size);
    248248    rtems_chain_append(&media_item_chain, &item->node);
    249249  }
Note: See TracChangeset for help on using the changeset viewer.