Bug #555
FromUtf8(), ... functions raise and exception when char *s is NULL
Status: | Rejected | Start date: | 10/30/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Iñaki Zabala | % Done: | 0% | |
Category: | Core | Spent time: | - | |
Target version: | - |
Description
FromUtf8(), utf8len()... functions raise and exception when char *s is NULL.
The reason is that strlen(NULL) raises an exception.
This affects to ToUpper(const char*) functions.
Should FromUtf8() or ToUpper() check this or is it a matter of the programmer?
History
#1 Updated by Miroslav Fidler over 11 years ago
- Status changed from New to Rejected
- Assignee changed from Miroslav Fidler to Iñaki Zabala
I think that these functions are the same category w.r.t. input const char* parameter as strlen. Therefore IMO it is not a bug, you should not pass NULL pointer there.
#2 Updated by Iñaki Zabala over 11 years ago
I agree. It seems ok.