Changeset 34776 in vbox for trunk/src/VBox
- Timestamp:
- Dec 7, 2010 12:07:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r34253 r34776 431 431 432 432 case VBOX_HGCM_SVC_PARM_PTR: 433 memcpy(paParms[i].u.pointer.addr, 434 pBuf->pParms[i].u.pointer.addr, 435 pBuf->pParms[i].u.pointer.size); 433 if (paParms[i].u.pointer.size >= pBuf->pParms[i].u.pointer.size) 434 { 435 memcpy(paParms[i].u.pointer.addr, 436 pBuf->pParms[i].u.pointer.addr, 437 pBuf->pParms[i].u.pointer.size); 438 } 439 else 440 rc = VERR_BUFFER_OVERFLOW; 436 441 break; 437 442
Note:
See TracChangeset
for help on using the changeset viewer.