Commit de11f20
committed
fwtpm: peer-review batch 1 (quick wins)
- NV_Write: reject non-ordinary/PIN NV types (CWE-697 counter reset)
- wolfTPM2_SetAuth/SetAuthHandleName: validate bounds before mutating
session state so failures don't leave auth.size oversized
- wolfTPM2_SetAuthHandle policyAuth: clamp name.size before XMEMCPY
- EventSequenceComplete: authHandleCnt 1->2 (sequenceHandle was unauth'd)
- NV_ChangeAuth: zero newAuthBuf stack copy before return
- FwRspParamsEnd: guard against rsp->pos < paramStart underflow
- wolfTPM2_ECDHGen: remove duplicate ForceZero1 parent f3ee625 commit de11f20
2 files changed
Lines changed: 32 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
9732 | 9732 | | |
9733 | 9733 | | |
9734 | 9734 | | |
| 9735 | + | |
| 9736 | + | |
| 9737 | + | |
| 9738 | + | |
| 9739 | + | |
| 9740 | + | |
| 9741 | + | |
| 9742 | + | |
| 9743 | + | |
| 9744 | + | |
| 9745 | + | |
| 9746 | + | |
9735 | 9747 | | |
9736 | 9748 | | |
9737 | 9749 | | |
| |||
10158 | 10170 | | |
10159 | 10171 | | |
10160 | 10172 | | |
| 10173 | + | |
| 10174 | + | |
| 10175 | + | |
10161 | 10176 | | |
10162 | 10177 | | |
10163 | 10178 | | |
| |||
12064 | 12079 | | |
12065 | 12080 | | |
12066 | 12081 | | |
12067 | | - | |
| 12082 | + | |
12068 | 12083 | | |
12069 | 12084 | | |
12070 | 12085 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
1667 | 1673 | | |
1668 | 1674 | | |
1669 | 1675 | | |
1670 | 1676 | | |
1671 | 1677 | | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | 1678 | | |
1677 | 1679 | | |
1678 | 1680 | | |
| |||
1731 | 1733 | | |
1732 | 1734 | | |
1733 | 1735 | | |
1734 | | - | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
1735 | 1740 | | |
1736 | 1741 | | |
1737 | 1742 | | |
| |||
1754 | 1759 | | |
1755 | 1760 | | |
1756 | 1761 | | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
1757 | 1767 | | |
1758 | 1768 | | |
1759 | 1769 | | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | 1770 | | |
1765 | 1771 | | |
1766 | 1772 | | |
1767 | 1773 | | |
1768 | 1774 | | |
1769 | 1775 | | |
1770 | 1776 | | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
1775 | 1777 | | |
1776 | 1778 | | |
1777 | 1779 | | |
| |||
5112 | 5114 | | |
5113 | 5115 | | |
5114 | 5116 | | |
5115 | | - | |
5116 | 5117 | | |
5117 | 5118 | | |
5118 | 5119 | | |
| |||
0 commit comments