<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/95441>95441</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            bug in memory sanitizer
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          FeelUsM
      </td>
    </tr>
</table>

<pre>
    version:
```
$ clang --version
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
```

test.c :
```c
#include <stdio.h>
#include <stdlib.h>

int main(){
        int * y = malloc(5*sizeof(int));
        for(int i=0; i<5; i++)
                printf("%d ",y[i]);
        printf("\n");
        free(y);
}
```

compile and run:
```
$ clang test.c
$ ./a.out
0 0 0 0 0
```
-- some uninitialized values. It may be zeros, it is OK.

```
$ clang -fsanitize=memory test.c
$ ./a.out
0 0 0 0 0
```
-- memory sanitizer don't say bout uninitialized values. I think it is bug.

```
$ clang -fsanitize=address test.c
$ ./a.out
-1094795586 -1094795586 -1094795586 -1094795586 -1094795586
```
-- some uninitialized values. Some strange numbers, it is OK again.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyklFuPqzYQxz_N8DICGXMJPPCQhCIdVVUf2vNcGTwhbo0d-bLd7KevINnuSc_ZXraKZTv-jf_8h7ER3qvZEHVQHaDqExHD2bpuINKf_Q_JaOW1eyLnlTVQ7IH1wPZQs3u7_eUlTlqYGdP0NXQDn8doQryzO8G8zFjG0jxuMM_yW-zPws0UoNjjc1P_UpfpZUq1MvE5nU28h5wdCYmLlaTXwIv16vmGPhkfhNYke-VWBHyI3gEfRmW-7XnrA_mQTfh1YtNrZoUyk46SEIqjD1LZ7AzFd-9QrcYv8dYrE3ARygBvgLewO7zCdiXA93hFKHpchNZ2At5UwPdevZA9AW-UCesu3kLxtvFk3Q2hgqJnUBzWybG6Tfhha-2f4cDai1MmnDYLHHglcRuPV6gOCqr-L_oP0dXRbMGPDhwR8Ob6sLzr_-ZNT3a5KE0ojEQX_8VRupXmbTUDPojMxnBbYnj_fVMmTdHbhTAaZVRQQqsXkvgkdCSf4ae1IlccCV_IWQ_8iCqg8vjj99mXnt8_5icvVt0XgqJfaLHu-r_93mVehR1Ka4DvAvrVqo3hvWQwnJX57Z7BGOcPpCCkdOT9P-WQ5qwtd21VNTX-x_kHqvTTinxwwsyEJi4juYdSoZiFMlkiu0K2RSsS6vJd3vC2bVqWnLuyLkfWyEqMZS6IlXnZ5uWJsfEkd0Lkp0R1nPGS1XmR74qc11nNqjoXtKsFL6uiICgZLULpTOunJbNuTpT3kbq2Kss80WIk7bfPJueGfscNblemT1y37knHOHsomVY--DeVoIKmbowzKvNV3ZPodHcO4eLXO8IH4MOswjmO2WQX4MOqch_Si7O_0hSAD9uzPfDh5u2p438EAAD__w2UpEQ">