VirtualBox

Changeset 62168 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Jul 11, 2016 5:17:18 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108675
Message:

EFI/Firmware: EslSocketTransmit - fix pBuffer/pDataLength check to
match EslSocketReceive. While here, fix related debug messages to use
DEBUG_TX instead of copy/pasted DEBUG_RX.

Xref https://github.com/tianocore/edk2/issues/52

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/StdLib/EfiSocketLib/Socket.c

    r58459 r62168  
    55245524          //  Validate the buffer length
    55255525          //
     5526          // NB: local fix for https://github.com/tianocore/edk2/issues/52
    55265527          if (( NULL == pDataLength )
    5527             && ( 0 > pDataLength )
    5528             && ( NULL == pBuffer )) {
     5528            || ( NULL == pBuffer )) {
    55295529            if ( NULL == pDataLength ) {
    5530               DEBUG (( DEBUG_RX,
     5530              DEBUG (( DEBUG_TX,
    55315531                        "ERROR - pDataLength is NULL!\r\n" ));
    55325532            }
    5533             else if ( NULL == pBuffer ) {
    5534               DEBUG (( DEBUG_RX,
     5533            else {
     5534              DEBUG (( DEBUG_TX,
    55355535                        "ERROR - pBuffer is NULL!\r\n" ));
    5536             }
    5537             else {
    5538               DEBUG (( DEBUG_RX,
    5539                         "ERROR - Data length < 0!\r\n" ));
    55405536            }
    55415537            Status = EFI_INVALID_PARAMETER;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette