You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function linked below tends to get into an infinite loop if s[0] == ' '. In other words, if s[0] is a space character, the function gets into an infinite loop regardless of following characters in the string being non-space. This is because iter is not incremented.
Yes this is a bug. Thank you for your report. We will look to fix this in a future release. I expect this ticket will be reviewed and scheduled at a later date as we continue to make progress on our unreviewed tickets.
Describe the bug
The function linked below tends to get into an infinite loop if
s[0] == ' '
. In other words, ifs[0]
is a space character, the function gets into an infinite loop regardless of following characters in the string being non-space. This is becauseiter
is not incremented.visit/src/common/utility/StringHelpers.C
Lines 873 to 886 in 19e76b6
Test for reproducing the bug
Both of these tests result in an infinite loop that is terminated by a 120 seconds timeout instrumented by me on the test executables.
Test 1
Test 2
Crash report
Potential fix
Updating the function to increment
iter
as shown below can fix the bug.The text was updated successfully, but these errors were encountered: