When a non valid is provided to hlsdl command line tool, Segmentation fault error is occurring.
Steps to reproduce:
hlsdl abcd
Output:
Error: No such file or directory
Error: abcd 404 tries[3]
Error: No such file or directory
Error: abcd 404 tries[2]
Error: No such file or directory
Error: abcd 404 tries[1]
{"error_code":404, "error_msg":""}
Segmentation fault (core dumped)
Fixed the code to handle the URL correctly and in result Segmentation fault is not occurring.
Output after fix:
Error: No such file or directory
Error: abcd 404 tries[3]
Error: No such file or directory
Error: abcd 404 tries[2]
Error: No such file or directory
Error: abcd 404 tries[1]
{"error_code":404, "error_msg":""}
When a non valid is provided to hlsdl command line tool, Segmentation fault error is occurring.
Steps to reproduce:
Output:
Fixed the code to handle the URL correctly and in result Segmentation fault is not occurring.
Output after fix: