Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

3 new defect(s) introduced to LibreOffice found with Coverity Scan.
6 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)


** CID 1666322:       Control flow issues  (DEADCODE)
/workdir/UnpackedTarball/fast_float/include/fast_float/float_common.h: 277      
     in fast_float::fastfloat_strncasecmp<char>(const T1 *, const T1 *, 
unsigned long)()


_____________________________________________________________________________________________
*** CID 1666322:         Control flow issues  (DEADCODE)
/workdir/UnpackedTarball/fast_float/include/fast_float/float_common.h: 277      
       in fast_float::fastfloat_strncasecmp<char>(const T1 *, const T1 *, 
unsigned long)()
271     template <typename UC>
272     inline FASTFLOAT_CONSTEXPR14 bool
273     fastfloat_strncasecmp(UC const *actual_mixedcase, UC const 
*expected_lowercase,
274                           size_t length) {
275       for (size_t i = 0; i < length; ++i) {
276         UC const actual = actual_mixedcase[i];
>>>     CID 1666322:         Control flow issues  (DEADCODE)
>>>     Execution cannot reach the expression "actual" inside this statement: 
>>> "if (((actual < 256) ? actua...".
277         if ((actual < 256 ? actual | 32 : actual) != expected_lowercase[i]) 
{
278           return false;
279         }
280       }
281       return true;
282     }

** CID 1666321:       Null pointer dereferences  (FORWARD_NULL)
/workdir/UnpackedTarball/fast_float/include/fast_float/ascii_number.h: 460      
     in fast_float::parse_number_string<(bool)0, char>(const T2 *, const T2 *, 
fast_float::parse_options_t<T2>)()


_____________________________________________________________________________________________
*** CID 1666321:         Null pointer dereferences  (FORWARD_NULL)
/workdir/UnpackedTarball/fast_float/include/fast_float/ascii_number.h: 460      
       in fast_float::parse_number_string<(bool)0, char>(const T2 *, const T2 
*, fast_float::parse_options_t<T2>)()
454           if (i >= minimal_nineteen_digit_integer) { // We have a big 
integer
455             exponent = end_of_integer_part - p + exp_number;
456           } else { // We have a value with a fractional component.
457             p = answer.fraction.ptr;
458             UC const *frac_end = p + answer.fraction.len();
459             while ((i < minimal_nineteen_digit_integer) && (p != frac_end)) 
{
>>>     CID 1666321:         Null pointer dereferences  (FORWARD_NULL)
>>>     Dereferencing null pointer "p".
460               i = i * 10 + uint64_t(*p - UC('0'));
461               ++p;
462             }
463             exponent = answer.fraction.ptr - p + exp_number;
464           }
465           // We have now corrected both exponent and i, to a truncated value

** CID 1541050:         (DEADCODE)
/workdir/UnpackedTarball/fast_float/include/fast_float/digit_comparison.h: 339  
         in fast_float::parse_mantissa<char>(fast_float::bigint &, 
fast_float::parsed_number_string_t<T1> &, unsigned long, unsigned long &)()
/workdir/UnpackedTarball/fast_float/include/fast_float/digit_comparison.h: 339  
         in fast_float::parse_mantissa<char>(fast_float::bigint &, 
fast_float::parsed_number_string_t<T1> &, unsigned long, unsigned long &)()


_____________________________________________________________________________________________
*** CID 1541050:           (DEADCODE)
/workdir/UnpackedTarball/fast_float/include/fast_float/digit_comparison.h: 339  
           in fast_float::parse_mantissa<char>(fast_float::bigint &, 
fast_float::parsed_number_string_t<T1> &, unsigned long, unsigned long &)()
333             value = 0;
334           }
335         }
336       }
337     
338       if (counter != 0) {
>>>     CID 1541050:           (DEADCODE)
>>>     Execution cannot reach this statement: "fast_float::add_native(resu...".
339         add_native(result, limb(powers_of_ten_uint64[counter]), value);
340       }
341     }
342     
343     template <typename T>
344     inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa
/workdir/UnpackedTarball/fast_float/include/fast_float/digit_comparison.h: 339  
           in fast_float::parse_mantissa<char>(fast_float::bigint &, 
fast_float::parsed_number_string_t<T1> &, unsigned long, unsigned long &)()
333             value = 0;
334           }
335         }
336       }
337     
338       if (counter != 0) {
>>>     CID 1541050:           (DEADCODE)
>>>     Execution cannot reach this statement: "fast_float::add_native(resu...".
339         add_native(result, limb(powers_of_ten_uint64[counter]), value);
340       }
341     }
342     
343     template <typename T>
344     inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

Reply via email to