Repository navigation
Commit 90dba1a
fix(cli): reject malformed approval grant lifetimes (#133806)
* fix(cli): reject malformed approval grant lifetimes
* fix(cli): validate whole approval grant lifetimes
Reuse the canonical strict parser and consolidate range validation without
changing valid or omitted grant terms. Cover malformed and boundary input.
Co-authored-by: qingminlong <[email protected]>
---------
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: qingminlong <[email protected]>1 parent e4cf6f5 commit 90dba1a
2 files changed
Lines changed: 72 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
167 | 235 | | |
168 | 236 | | |
169 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
| 752 | + | |
| 753 | + | |
758 | 754 | | |
759 | 755 | | |
760 | | - | |
| 756 | + | |
761 | 757 | | |
762 | 758 | | |
763 | 759 | | |
| |||
767 | 763 | | |
768 | 764 | | |
769 | 765 | | |
770 | | - | |
| 766 | + | |
771 | 767 | | |
772 | 768 | | |
773 | 769 | | |
| |||
0 commit comments