Changes between Initial Version and Version 1 of Ticket #3666, comment 91
- Timestamp:
- 11/07/16 08:03:18 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3666, comment 91
initial v1 3 3 The size of array is the 'len + 1', as described in function description. 4 4 5 assert() itself is not a segfault protection. I think that size_trunc_len() mustn't segfault with small buffer. If buffer is to small, it can be filled with some non-numerical value (say, "????", or "----", or something else) in order to show that requested size cannot be printed correctly.5 assert() itself is not a segfault protection. I think that size_trunc_len() mustn't segfault with small buffer. If buffer is too small, it can be filled with some non-numerical value (say, "????", or "----", or something else) in order to show that requested size cannot be printed correctly.