Changeset 22cd282 in rtems for testsuites/fstests


Ignore:
Timestamp:
Oct 8, 2014, 9:24:36 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
3e1bf78
Parents:
b9f95225
git-author:
Sebastian Huber <sebastian.huber@…> (10/08/14 09:24:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/08/14 09:26:27)
Message:

IMFS: Avoid NULL pointer access

Avoid NULL pointer access in IMFS_is_imfs_instance(). File systems
mounted via mount() always have a valid type string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsimfsgeneric01/init.c

    rb9f95225 r22cd282  
    473473  rtems_test_assert(errno == EIO);
    474474  rtems_test_assert(rtems_resource_snapshot_check(&before));
     475
     476  errno = 0;
     477  rv = IMFS_make_generic_node(
     478    "/nil/nada",
     479    S_IFCHR | S_IRWXU | S_IRWXG | S_IRWXO,
     480    &node_control,
     481    NULL
     482  );
     483  rtems_test_assert(rv == -1);
     484  rtems_test_assert(errno == ENOENT);
     485  rtems_test_assert(rtems_resource_snapshot_check(&before));
    475486}
    476487
Note: See TracChangeset for help on using the changeset viewer.