mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
mm/mm_heap/mm_calloc.c: Verify that the number of elements times the size of an element will not overflow type size_t. This is required by the SEI CERT C coding style and resolves anonymous Bitbucket Issue #139
This commit is contained in:
@@ -2181,6 +2181,9 @@ o File system / Generic drivers (fs/, drivers/)
|
||||
space at the seek position. Seeking beyond the end of the file
|
||||
has the side effect of extending the file.
|
||||
|
||||
[NOTE: This automatic extension of the file cluster allocation
|
||||
is probably unnecessary and another issue of its own.]
|
||||
|
||||
For example, suppose you have a cluster size that is 4096 bytes
|
||||
and a file that is 8192 bytes long. Then the file will consist
|
||||
of 2 allocated clusters at offsets 0 through 8191.
|
||||
|
||||
Reference in New Issue
Block a user