Project

General

Profile

Actions

Bug #3001

closed

usr.bin/unexpand/unexpand.c: 2 * array index check in wrong place ?

Added by dcb over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/31/2017
Due date:
% Done:

0%

Estimated time:

Description

1.

usr.bin/unexpand/unexpand.c:125]: (style) Array index 'n' is used before limits check.

Source code is

for (n = 0; tabstops[n] - 1 < dcol &&
n < nstops; n++)

2.

usr.bin/unexpand/unexpand.c:147]: (style) Array index 'n' is used before limits check.

Duplicate.

Actions #1

Updated by dillon over 7 years ago

  • Status changed from New to Closed

Fix committed by swildner

Actions

Also available in: Atom PDF