@@ -5557,7 +5557,7 @@ ASSEMBLER_TEST_GENERATE(TestRepMovsBytes, assembler) {
5557
5557
5558
5558
ASSEMBLER_TEST_RUN (TestRepMovsBytes, test) {
5559
5559
const char * from = " 0123456789x" ;
5560
- char * to = new char [11 ];
5560
+ char * to = new char [11 ]{ 0 } ;
5561
5561
to[10 ] = ' y' ;
5562
5562
typedef void (*TestRepMovsBytes)(const char * from, char * to, int count);
5563
5563
reinterpret_cast <TestRepMovsBytes>(test->entry ())(from, to, 10 );
@@ -5607,7 +5607,7 @@ ASSEMBLER_TEST_GENERATE(TestRepMovsWords, assembler) {
5607
5607
ASSEMBLER_TEST_RUN (TestRepMovsWords, test) {
5608
5608
const uint16_t from[11 ] = {0x0123 , 0x1234 , 0x2345 , 0x3456 , 0x4567 , 0x5678 ,
5609
5609
0x6789 , 0x789A , 0x89AB , 0x9ABC , 0xABCD };
5610
- uint16_t * to = new uint16_t [11 ];
5610
+ uint16_t * to = new uint16_t [11 ]{ 0 } ;
5611
5611
to[10 ] = 0xFEFE ;
5612
5612
typedef void (*TestRepMovsWords)(const uint16_t * from, uint16_t * to,
5613
5613
int count);
@@ -5659,7 +5659,7 @@ ASSEMBLER_TEST_RUN(TestRepMovsDwords, test) {
5659
5659
const uint32_t from[11 ] = {0x01234567 , 0x12345678 , 0x23456789 , 0x3456789A ,
5660
5660
0x456789AB , 0x56789ABC , 0x6789ABCD , 0x789ABCDE ,
5661
5661
0x89ABCDEF , 0x9ABCDEF0 , 0xABCDEF01 };
5662
- uint32_t * to = new uint32_t [11 ];
5662
+ uint32_t * to = new uint32_t [11 ]{ 0 } ;
5663
5663
to[10 ] = 0xFEFEFEFE ;
5664
5664
typedef void (*TestRepMovsDwords)(const uint32_t * from, uint32_t * to,
5665
5665
int count);
@@ -5713,7 +5713,7 @@ ASSEMBLER_TEST_RUN(TestRepMovsQwords, test) {
5713
5713
0x3456789ABCDEF012 , 0x456789ABCDEF0123 , 0x56789ABCDEF01234 ,
5714
5714
0x6789ABCDEF012345 , 0x789ABCDEF0123456 , 0x89ABCDEF01234567 ,
5715
5715
0x9ABCDEF012345678 , 0xABCDEF0123456789 };
5716
- uint64_t * to = new uint64_t [11 ];
5716
+ uint64_t * to = new uint64_t [11 ]{ 0 } ;
5717
5717
to[10 ] = 0xFEFEFEFEFEFEFEFE ;
5718
5718
typedef void (*TestRepMovsQwords)(const uint64_t * from, uint64_t * to,
5719
5719
int count);
0 commit comments