Skip to content
  • Pedro Figueiredo's avatar
    7b625e26
    BUG#30025187 TEST RPL_MULTI_SOURCE_CHANNEL_MAP_STRESS EXPOSES A VALGRIND ERROR · 7b625e26
    Pedro Figueiredo authored
    
    
    Description
    -----------
    Running `rpl.rpl_multi_source_channel_map_stress` test script with `--valgrind`
    option exposes a ` Conditional jump or move depends on uninitialised value(s)`.
    
    Analysis
    --------
    Member variable `LOG_INFO::char log_file_name` is used as a parameter of
    `dirname_length(char const*)`, where the valgrind memory error is caught.
    
    Although a `memset` with `0` value is performed in the `LOG_INFO` struct
    constructor, this is not a semantic-bound initialization and, therefore,
    Valgrind is unable to include it has such.
    
    Fix
    ---
    Add ` = {0}` to the member variable declaration.
    
    Reviewed-by: default avatarPedro Gomes <pedro.gomes@oracle.com>
    7b625e26
    BUG#30025187 TEST RPL_MULTI_SOURCE_CHANNEL_MAP_STRESS EXPOSES A VALGRIND ERROR
    Pedro Figueiredo authored
    
    
    Description
    -----------
    Running `rpl.rpl_multi_source_channel_map_stress` test script with `--valgrind`
    option exposes a ` Conditional jump or move depends on uninitialised value(s)`.
    
    Analysis
    --------
    Member variable `LOG_INFO::char log_file_name` is used as a parameter of
    `dirname_length(char const*)`, where the valgrind memory error is caught.
    
    Although a `memset` with `0` value is performed in the `LOG_INFO` struct
    constructor, this is not a semantic-bound initialization and, therefore,
    Valgrind is unable to include it has such.
    
    Fix
    ---
    Add ` = {0}` to the member variable declaration.
    
    Reviewed-by: default avatarPedro Gomes <pedro.gomes@oracle.com>
Loading