Actions
Improvements #13816
openCode with undefined behavior
Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
07/03/2025
Due date:
% Done:
0%
Estimated time:
Description
Hello,
In WWebWdiget.C, the statement &text[text.size] is undefined behavior. We activated some instrumentation in our libstdc++ library and this code triggers an alarm. No biggy ;-)
std::string& WWebWidget::unescapeText(std::string &text)
{
#ifndef WT_TARGET_JAVA
char *inP = &text[0];
char *const inEndP = &text[text.size()]; // HERE
char *outP = &text[0];
char *ampP = nullptr;
Thanks.
No data to display
Actions