Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIFI Shield support has some bad uses of strncpy() #6564

Open
Labels
Architecture: AVRApplies only to the AVR microcontrollers (Uno, etc.) Component: CoreRelated to the code for the standard Arduino API Component: FirmwareLimited to the contents of the firmwares folder in the core packages Library: WifiThe Wifi Arduino library Type: Bug
@WestfW

Description

From code inspection:.. These are incorrect calls to strncpy - using the length of the source string rather than the destination buffer...

 libraries/WiFi/extras/wifiHD/src/ard_spi.c - instances of:
 strncpy(keyIdx, (const char*)&params->param, params->paramLen);
hardware/arduino/avr/firmwares/wifishield/wifiHD/src/SOFTWARE_FRAMEWORK/COMPONENTS/WIFI/HD/wl_api.h - instances of:
 strncpy(net.ssid.ssid, "My AP", strlen("My AP"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Architecture: AVRApplies only to the AVR microcontrollers (Uno, etc.) Component: CoreRelated to the code for the standard Arduino API Component: FirmwareLimited to the contents of the firmwares folder in the core packages Library: WifiThe Wifi Arduino library Type: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /