• cyy's avatar
    Merge pull request #12391 from DEEPIR:master · 10fb88d0
    cyy authored
    fix some errors found by static analyzer. (#12391)
    
    * fix possible divided by zero and by negative values
    
    * only 4 elements are used in these arrays
    
    * fix uninitialized member
    
    * use boolean type for semantic boolean variables
    
    * avoid invalid array index
    
    * to avoid exception and because base64_beg is only used in this block
    
    * use std::atomic<bool> to avoid thread control race condition
    10fb88d0
parallel_impl.cpp 25.1 KB