@@ -5557,7 +5557,7 @@ ASSEMBLER_TEST_GENERATE(TestRepMovsBytes, assembler) {
55575557
55585558ASSEMBLER_TEST_RUN (TestRepMovsBytes, test) {
55595559 const char * from = " 0123456789x" ;
5560- char * to = new char [11 ];
5560+ char * to = new char [11 ]{ 0 } ;
55615561 to[10 ] = ' y' ;
55625562 typedef void (*TestRepMovsBytes)(const char * from, char * to, int count);
55635563 reinterpret_cast <TestRepMovsBytes>(test->entry ())(from, to, 10 );
@@ -5607,7 +5607,7 @@ ASSEMBLER_TEST_GENERATE(TestRepMovsWords, assembler) {
56075607ASSEMBLER_TEST_RUN (TestRepMovsWords, test) {
56085608 const uint16_t from[11 ] = {0x0123 , 0x1234 , 0x2345 , 0x3456 , 0x4567 , 0x5678 ,
56095609 0x6789 , 0x789A , 0x89AB , 0x9ABC , 0xABCD };
5610- uint16_t * to = new uint16_t [11 ];
5610+ uint16_t * to = new uint16_t [11 ]{ 0 } ;
56115611 to[10 ] = 0xFEFE ;
56125612 typedef void (*TestRepMovsWords)(const uint16_t * from, uint16_t * to,
56135613 int count);
@@ -5659,7 +5659,7 @@ ASSEMBLER_TEST_RUN(TestRepMovsDwords, test) {
56595659 const uint32_t from[11 ] = {0x01234567 , 0x12345678 , 0x23456789 , 0x3456789A ,
56605660 0x456789AB , 0x56789ABC , 0x6789ABCD , 0x789ABCDE ,
56615661 0x89ABCDEF , 0x9ABCDEF0 , 0xABCDEF01 };
5662- uint32_t * to = new uint32_t [11 ];
5662+ uint32_t * to = new uint32_t [11 ]{ 0 } ;
56635663 to[10 ] = 0xFEFEFEFE ;
56645664 typedef void (*TestRepMovsDwords)(const uint32_t * from, uint32_t * to,
56655665 int count);
@@ -5713,7 +5713,7 @@ ASSEMBLER_TEST_RUN(TestRepMovsQwords, test) {
57135713 0x3456789ABCDEF012 , 0x456789ABCDEF0123 , 0x56789ABCDEF01234 ,
57145714 0x6789ABCDEF012345 , 0x789ABCDEF0123456 , 0x89ABCDEF01234567 ,
57155715 0x9ABCDEF012345678 , 0xABCDEF0123456789 };
5716- uint64_t * to = new uint64_t [11 ];
5716+ uint64_t * to = new uint64_t [11 ]{ 0 } ;
57175717 to[10 ] = 0xFEFEFEFEFEFEFEFE ;
57185718 typedef void (*TestRepMovsQwords)(const uint64_t * from, uint64_t * to,
57195719 int count);
0 commit comments