- Timestamp:
- Feb 8, 2013 5:18:29 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r44591 r44592 477 477 478 478 /* 479 * Validate the input a little.479 * Validate and adjust the input a little before we start. 480 480 */ 481 481 int rc = RTStrValidateEncoding(pThis->NVRAM.VarOpBuf.szName); 482 482 if (RT_FAILURE(rc)) 483 483 LogRel(("EFI: Badly encoded variable name: %.*Rhxs\n", pThis->NVRAM.VarOpBuf.cchName + 1, pThis->NVRAM.VarOpBuf.szName)); 484 size_t cchName = RTStrNLen(pThis->NVRAM.VarOpBuf.szName, sizeof(pThis->NVRAM.VarOpBuf.szName));485 if (cchName != pThis->NVRAM.VarOpBuf.cchName)486 {487 LogRel(("EFI: Bad name length %#x, expected %#x: %.*Rhxs\n",488 cchName, pThis->NVRAM.VarOpBuf.cchName, pThis->NVRAM.VarOpBuf.cchName + 1, pThis->NVRAM.VarOpBuf.szName));489 rc = VERR_INVALID_PARAMETER;490 }491 484 if (RT_FAILURE(rc)) 492 485 { … … 494 487 return VINF_SUCCESS; 495 488 } 489 pThis->NVRAM.VarOpBuf.cchName = RTStrNLen(pThis->NVRAM.VarOpBuf.szName, sizeof(pThis->NVRAM.VarOpBuf.szName)); 496 490 497 491 /*
Note:
See TracChangeset
for help on using the changeset viewer.