Several struct members were left uninitialized in some paths of the code. Fix this by initializing all struct members to 0 in the affected places. Also fix an incorrectly sized malloc, where the size of a pointer instead of the struct size was supplied to malloc.
|
|
||
| 5 |
|
5 |
|
| 6 |
|
6 |
|
| 7 |
|
7 |
|
|
8 |
|
|
| 8 |
|
9 |
|
| 9 |
|
10 |
|
| 10 |
|
11 |
|
| 11 |
|
12 |
|
| 12 |
|
13 |
|
| 13 |
|
14 |
|
|
15 |
|
|
| 14 |
|
16 |
|
| 15 |
|
17 |
|
| 16 |
|
18 |
|
|
|
||
| 63 |
|
65 |
|
| 64 |
|
66 |
|
| 65 |
|
67 |
|
|
68 |
|
|
| 66 |
|
69 |
|
| 67 |
|
70 |
|
| 68 |
|
71 |
|
|
|
||
| 435 |
|
435 |
|
| 436 |
|
436 |
|
| 437 |
|
437 |
|
| 438 |
|
|
|
|
438 |
|
|
| 439 |
|
439 |
|
| 440 |
|
440 |
|
| 441 |
|
441 |
|