Commit 28110d4
commit: reject invalid UTF-8 codepoints
The commit code already contains code for validating UTF-8, but it does not
check for invalid values, such as guaranteed non-characters and surrogates. Fix
this by explicitly checking for and rejecting such characters.
Signed-off-by: brian m. carlson <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 81a199b commit 28110d4
2 files changed
+30
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| 1247 | + | |
1247 | 1248 | | |
1248 | 1249 | | |
1249 | 1250 | | |
| |||
1264 | 1265 | | |
1265 | 1266 | | |
1266 | 1267 | | |
1267 | | - | |
1268 | | - | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1269 | 1273 | | |
1270 | 1274 | | |
1271 | 1275 | | |
1272 | 1276 | | |
1273 | 1277 | | |
1274 | 1278 | | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1275 | 1282 | | |
1276 | 1283 | | |
1277 | 1284 | | |
1278 | 1285 | | |
1279 | 1286 | | |
| 1287 | + | |
| 1288 | + | |
1280 | 1289 | | |
1281 | 1290 | | |
1282 | 1291 | | |
1283 | 1292 | | |
1284 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1285 | 1302 | | |
1286 | 1303 | | |
1287 | 1304 | | |
| |||
1292 | 1309 | | |
1293 | 1310 | | |
1294 | 1311 | | |
1295 | | - | |
1296 | | - | |
| 1312 | + | |
| 1313 | + | |
1297 | 1314 | | |
1298 | 1315 | | |
1299 | 1316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
0 commit comments