VirtualBox

Changeset 107633 in vbox for trunk


Ignore:
Timestamp:
Jan 10, 2025 11:00:39 AM (8 days ago)
Author:
vboxsync
Message:

src/VBox/HostDrivers/VBoxUSB/USBFilter.cpp: Fixed warnings found by Parfait (null pointer dereference). Needs backport. jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/USBFilter.cpp

    r106500 r107633  
    705705 * Performs simple pattern matching.
    706706 *
    707  * @returns true on match and false on mismatch.
    708  * @param   pszPattern  The pattern to match against.
     707 * @returns \c true on match and \c false on mismatch.
     708 * @param   pszPattern  The pattern to match against. NULL is not okay.
    709709 * @param   psz         The string to match.
    710710 */
    711711static bool usbfilterMatchStringPattern(const char *pszPattern, const char *psz)
    712712{
     713    AssertPtrReturn(pszPattern, false);
     714    AssertPtrReturn(psz, false);
     715
    713716    char ch;
    714717    while ((ch = *pszPattern++))
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