Commit c50105d
nvproxy: Add size check for NV0000_CTRL_CMD_SYSTEM_GET_BUILD_VERSION.
This change introduces a maximum size limit for the strings requested in
NV0000_CTRL_CMD_SYSTEM_GET_BUILD_VERSION to prevent excessive memory allocation
based on user-provided input.
Reported-by: Antoni Tremblay <i00@tutanota.com>
PiperOrigin-RevId: 8730117681 parent 2ba75b9 commit c50105d
2 files changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
964 | 968 | | |
965 | 969 | | |
966 | 970 | | |
| |||
0 commit comments