Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Suspected bug: missing bounds check for pycom.ota_write #201

@martijnthe

Description

@martijnthe

See updater_write function here:
https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/ftp/updater.c#L122

I suspect that when using the pycom.ota_write, it's possible to write beyond the OTA partition (and into the partitions after it, such as the filesystem one). I don't see any bounds checking in the updater_write function nor in the micropython binding code.

cc @Xykon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions