Skip to content

Incorrect constant used in comparison. #444

@hstokes1

Description

@hstokes1

if (i >= _MAX_LOCK)

Should be comparing with _MAX_FLOCK, not _MAX_LOCK.

Result of bug:

When _MAX_FLOCK is greater than _MAX_LOCK, some file mutexes are incorrectly set to NULL, and the app will hard fault as soon as the file lock is encountered.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdiscussionFlagged for discussion during the weekly team meeting

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions