GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Integer parsing should detect overflow

Open
#2,379 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

Currently, TW uses `strtol` to directly convert strings to integers. A wrapper version of this method should be developed, which would detect overflow or other parsing failures and throw exceptions, if appropriate.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.