VirtualBox

Changes between Initial Version and Version 1 of Ticket #16834


Ignore:
Timestamp:
Jun 21, 2017 12:14:33 PM (7 years ago)
Author:
Frank Mehnert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16834 – Description

    initial v1  
    11Function VGDrvCommonIoCtl in src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp is checking to see if pcbDataReturned is NULL and then setting it to zero, thus the code assumes there is a potential for the pointer to be NULL.  However, later in the function we have:
    2 
     2{{{
    33            case VBOXGUEST_IOCTL_GUEST_CAPS_ACQUIRE:
    44                CHECKRET_SIZE("GUEST_CAPS_ACQUIRE", sizeof(VBoxGuestCapsAquire));
     
    66                *pcbDataReturned = sizeof(VBoxGuestCapsAquire);
    77                break;
    8 
     8}}}
    99and this dereferencing the pointer that could potentially be zero.
    1010

© 2023 Oracle
ContactPrivacy policyTerms of Use