Project

General

Profile

Actions

Bug #366

closed

Feature #353: Release v1.3

Possible division by zero for `freq` param in dummyflasher

Added by Anastasia Klimchuk over 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
Release prep
Target version:
Start date:
04/28/2022
Due date:
% Done:

100%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

Actions #1

Updated by Felix Singer over 2 years ago

  • Related links updated (diff)
Actions #2

Updated by Anastasia Klimchuk over 2 years ago

  • Assignee set to Anastasia Klimchuk
Actions #3

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

Actions #4

Updated by Anastasia Klimchuk over 2 years ago

  • Status changed from New to Resolved
Actions #5

Updated by Nico Huber over 2 years ago

  • Status changed from Resolved to Closed

Confirmed, providing freq=0 exits gracefully now.

Actions #6

Updated by Felix Singer about 2 years ago

  • Status changed from Closed to Resolved
Actions #7

Updated by Felix Singer about 2 years ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF