Project

General

Profile

Actions

Bug #3585

open

Defect ID: DF006

Bug #3585: Defect ID: DF006

Added by Ha Long Ha about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Start date:
10/02/2025
Due date:
% Done:

0%

Estimated time:

Description

Defect ID: DF006

Defect Name: No validation for jagged (ragged) arrays

Line Number: 3

Defect Description: The implementation assumes all rows in A and B have the same length (non-jagged), but if rows have varying lengths the algorithm may access invalid indices or produce wrong results.

Fixing Solution: Validate that every A[i].length equals A[0].length and every B[i].length equals B[0].length before performing multiplication; throw IllegalArgumentException if not.

No data to display

Actions

Also available in: PDF Atom