VirtualBox

Changeset 12423 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 12, 2008 2:42:49 PM (16 years ago)
Author:
vboxsync
Message:

IPRT/SUP: Renamed RTLdrOpenAppSharedLib to RTLdrOpenAppPriv. Hardend versions of RTLdrOpen and RTLdrOpenAppPriv. Use the hardend versions where appropriate.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DevSerial.cpp

    r11284 r12423  
    242242    if (RT_LIKELY(s->pDrvChar))
    243243        s->pDrvChar->pfnSetParameters(s->pDrvChar, speed, parity, data_bits, stop_bits);
     244#ifdef RT_OS_DARWIN
     245    if (RT_LIKELY(s->pDrvChar))
     246        s->cNsDelay = (69444 - 2000) / s->divider; /* 69444 == 1000,000,000 / (115,000 / 8); 2000 = fudge factor */
     247#endif
    244248}
    245249
     
    386390    case 5:
    387391        ret = s->lsr;
     392#ifdef RT_OS_DARWIN
     393        if (    !(ret & UART_LSR_THRE)
     394            &&   pThis->HeldXmitNanoTS
     395            &&  RTTimeNanoTS() - s->HeldXmitNanoTS >= s->cNsDelay) {
     396            ret = s->lsr |= UART_LSR_THRE;
     397        }
     398#endif
    388399        break;
    389400    case 6:
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r12368 r12423  
    2626#include <VBox/VBoxHDD-new.h>
    2727#include <VBox/err.h>
    28 
     28#include <VBox/sup.h>
    2929#include <VBox/log.h>
     30
    3031#include <iprt/alloc.h>
    3132#include <iprt/assert.h>
     
    195196
    196197        /* Try to load the plugin (RTLdrLoad takes care of the suffix). */
    197         rc = RTLdrLoad(pszPluginName, &hPlugin);
     198        rc = SUPR3HardenedLdrLoad(pszPluginName, &hPlugin);
    198199        if (RT_SUCCESS(rc))
    199200        {
     
    730731            }
    731732
    732             rc = RTLdrLoad(pszPluginPath, &hPlugin);
     733            rc = SUPR3HardenedLdrLoad(pszPluginPath, &hPlugin);
    733734            if (RT_SUCCESS(rc))
    734735            {
     
    10151016            }
    10161017
    1017             rc = RTLdrLoad(pszPluginPath, &hPlugin);
     1018            rc = SUPR3HardenedLdrLoad(pszPluginPath, &hPlugin);
    10181019            if (RT_SUCCESS(rc))
    10191020            {
Note: See TracChangeset for help on using the changeset viewer.

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