https://github.com/erichkeane commented:
I'm tempted by this fix based on how simplistic it is, but it definitely is going to cause a large amount of memory to be used, which is unfortunate. I believe we are completely tolerant of initializing with an insufficiently sized string literal: Rather than creating a string literal, we should probably just not be modifying the string literal so that these sizes don't affect each-other. That is, when we do the `char rest[100] = "shorter string"`, we shouldn't be modifying the string literal, so sharing them should be completely acceptable. https://github.com/llvm/llvm-project/pull/202837 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
