diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-05 21:48:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-09 17:15:20 +0100 |
commit | 83994913b6603c3a0dbb5ece4b3b5b47457ed99e (patch) | |
tree | a2684dcdfbcc0172140a4c9828c734497ff4695e /cpukit/include/rtems/confdefs/libio.h | |
parent | imfs: Use _IMFS_get_time() (diff) | |
download | rtems-83994913b6603c3a0dbb5ece4b3b5b47457ed99e.tar.bz2 |
imfs: Constify imfs_memfile_bytes_per_block
The CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK value is validated by
<rtems/confdefs/libio.h>. Changing this value during runtime could lead
to memory corruption.
Update #3894.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/confdefs/libio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/rtems/confdefs/libio.h b/cpukit/include/rtems/confdefs/libio.h index aced98b3b9..3c45771952 100644 --- a/cpukit/include/rtems/confdefs/libio.h +++ b/cpukit/include/rtems/confdefs/libio.h @@ -196,7 +196,7 @@ static const devFS_data _Filesystem_Root_data = { #error "CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK must be a power of two between 16 and 512" #endif -int imfs_rq_memfile_bytes_per_block = CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK; +const int imfs_memfile_bytes_per_block = CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK; static IMFS_fs_info_t _IMFS_fs_info; |