Changes between Initial Version and Version 1 of Ticket #3666, comment 91


Ignore:
Timestamp:
11/07/16 08:03:18 (7 years ago)
Author:
andrew_b
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3666, comment 91

    initial v1  
    33The size of array is the 'len + 1', as described in function description. 
    44 
    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. 
     5assert() 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.