Open cccs-ay opened 2 years ago
For an example of the previous bad behavior, see sample 7a99e0ff0d7f0951c53a21dfabc03fb9e06d1c585de62cc71d962c1c4dde4190
The bug pertains to the unwrapping of strings. A string that should not have been unwrapped was stripped of it's quotes, leading to this situation :
Correct evaluation : =IF(MFCO5<0, CALL("urlmon","URLDownloadToFileA","JJCCBB",0, (...)
=IF(MFCO5<0, CALL("urlmon","URLDownloadToFileA","JJCCBB",0, (...)
Evaluation prior to fix : =IF(MFCO5<0, CALL("urlmon","URLDownloadToFileA,"JJCCBB,0," (...)
=IF(MFCO5<0, CALL("urlmon","URLDownloadToFileA,"JJCCBB,0," (...)
because the string ","JJCCBB" was being stripped to "JJCCBB
","JJCCBB"
"JJCCBB
This caused an error in the parsing of the formula, crashing the program.
To fix it, I have changed the unwrapping function to avoid unwrapping when the count of quotes is uneven
I will check the PR soon, sorry for the late response
For an example of the previous bad behavior, see sample 7a99e0ff0d7f0951c53a21dfabc03fb9e06d1c585de62cc71d962c1c4dde4190
The bug pertains to the unwrapping of strings. A string that should not have been unwrapped was stripped of it's quotes, leading to this situation :
Correct evaluation :
=IF(MFCO5<0, CALL("urlmon","URLDownloadToFileA","JJCCBB",0, (...)
Evaluation prior to fix :
=IF(MFCO5<0, CALL("urlmon","URLDownloadToFileA,"JJCCBB,0," (...)
because the string
","JJCCBB"
was being stripped to"JJCCBB
This caused an error in the parsing of the formula, crashing the program.
To fix it, I have changed the unwrapping function to avoid unwrapping when the count of quotes is uneven