From 83994913b6603c3a0dbb5ece4b3b5b47457ed99e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 5 Mar 2020 21:48:10 +0100 Subject: imfs: Constify imfs_memfile_bytes_per_block The CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK value is validated by . Changing this value during runtime could lead to memory corruption. Update #3894. --- cpukit/libfs/src/imfs/imfs_stat_file.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'cpukit/libfs/src/imfs/imfs_stat_file.c') diff --git a/cpukit/libfs/src/imfs/imfs_stat_file.c b/cpukit/libfs/src/imfs/imfs_stat_file.c index 0135fe43e3..ef1d0095a6 100644 --- a/cpukit/libfs/src/imfs/imfs_stat_file.c +++ b/cpukit/libfs/src/imfs/imfs_stat_file.c @@ -19,8 +19,6 @@ #include -int imfs_memfile_bytes_per_block; - int IMFS_stat_file( const rtems_filesystem_location_info_t *loc, struct stat *buf -- cgit v1.2.3