Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
-
Reviewed
Description
strtol is used in hdfs-chmod.cc. The call to strtol could error out when an invalid input is provided. Need to handle the error given out by strtol.
Tasks to do -
1. Detect the error returned by strtol. The strtol documentation explains how to do so.
2. Return false to the caller if the error is detected.
3. Extend this unit test and add a case which exercises this by passing an invalid input. Please refer to this PR to get more context on how this unit test is written - https://github.com/apache/hadoop/pull/3588.
Attachments
Issue Links
- relates to
-
HDFS-16285 Make HDFS ownership tools cross platform
- Resolved
- links to