Bug #366
closedFeature #353: Release v1.3
Possible division by zero for `freq` param in dummyflasher
100%
Description
Ref commit https://github.com/flashrom/flashrom/commit/cb9f3cd0a70df166ada25bad7f18cc8ea80bac49
Needs investigation and fix.
Updated by Anastasia Klimchuk over 2 years ago
- Assignee set to Anastasia Klimchuk
Updated by Anastasia Klimchuk over 2 years ago
Repro steps:
$ ./flashrom -p dummy:emulate=W25Q128FV,freq=0 -V
flashrom v1.2-763-g41337be-dirty on Linux 5.17.11-1rodete2-amd64 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
flashrom was built with GCC 11.2.0, little endian
Command line (3 args): ./flashrom -p dummy:emulate=W25Q128FV,freq=0 -V
Initializing dummy programmer
Requested buses are: default
Enabling support for parallel flash.
Enabling support for LPC flash.
Enabling support for FWH flash.
Enabling support for SPI flash.
Enabling support for PROG flash.
Floating point exception
Updated by Anastasia Klimchuk over 2 years ago
- Status changed from New to Resolved
Resolving since https://review.coreboot.org/c/flashrom/+/65240 was merged.
Updated by Nico Huber over 2 years ago
- Status changed from Resolved to Closed
Confirmed, providing freq=0
exits gracefully now.
Updated by Felix Singer about 2 years ago
- Status changed from Closed to Resolved