rapidjson icon indicating copy to clipboard operation
rapidjson copied to clipboard

Some valgrind unit tests do not pass

Open Madouura opened this issue 2 years ago • 0 comments

I am unsure why they are not passing, as I am not proficient in using valgrind.

Affected unit tests

  • reader
    • ParseDoubleHandler
    • ParseNumber_NormalPrecisionError
  • dtoa
    • normal
    • maxDecimalPlaces

Adding the lines below to test/valgrind.supp allows the tests to pass, but is not desirable.

{
   Suppress memcpy_chk valgrind report 5
   Memcheck:Overlap
   fun:__memcpy_chk
   fun:*dtoa_normal*
}

{
   Suppress memcpy_chk valgrind report 6
   Memcheck:Overlap
   fun:__memcpy_chk
   fun:*dtoa_maxDecimalPlaces*
}

{
   Suppress memcpy_chk valgrind report 7
   Memcheck:Overlap
   fun:__memcpy_chk
   ...
   fun:*Reader*ParseDoubleHandler*
}

{
   Suppress memcpy_chk valgrind report 8
   Memcheck:Overlap
   fun:__memcpy_chk
   fun:*Reader*ParseNumber_NormalPrecisionError*
}

Madouura avatar Oct 31 '23 19:10 Madouura