Commit 35b6efd
committed
Fix crash in 'malloc' referring to function without a argument
As reported in llvm#159080, patch llvm#68059 didn't correctly check for the
argument count of the target function from malloc to ensure it has an
argument. This patch corrects that check.1 parent eb8e8e8 commit 35b6efd
File tree
3 files changed
+14
-1
lines changed- clang
- docs
- lib/Sema
- test/Sema
3 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 | | |
351 | 354 | | |
352 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1802 | 1802 | | |
1803 | 1803 | | |
1804 | 1804 | | |
1805 | | - | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1806 | 1810 | | |
1807 | 1811 | | |
1808 | 1812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments