Project

General

Profile

Actions

Bug #366

closed
AK AK

Feature #353: Release v1.3

Possible division by zero for `freq` param in dummyflasher

Bug #366: Possible division by zero for `freq` param in dummyflasher

Added by Anastasia Klimchuk almost 4 years ago. Updated over 3 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:

FS Updated by Felix Singer almost 4 years ago Actions #1

  • Related links updated (diff)

AK Updated by Anastasia Klimchuk almost 4 years ago Actions #2

  • Assignee set to Anastasia Klimchuk

AK Updated by Anastasia Klimchuk over 3 years ago Actions #3

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

AK Updated by Anastasia Klimchuk over 3 years ago Actions #4

  • Status changed from New to Resolved

NH Updated by Nico Huber over 3 years ago Actions #5

  • Status changed from Resolved to Closed

Confirmed, providing freq=0 exits gracefully now.

FS Updated by Felix Singer over 3 years ago Actions #6

  • Status changed from Closed to Resolved

FS Updated by Felix Singer over 3 years ago Actions #7

  • % Done changed from 0 to 100
Actions

Also available in: PDF Atom