https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111155
Bug ID: 111155 Summary: RFE: better diagrams for string operations Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- See https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=99a3fcb8ff0bf27407c525415384372189e2c3cc The generated diagrams could be improved. Specifically: - we should show the index of the insertion point into buf of the strcat string. This could be done by looking at hard boundaries, and ensuring that we show the index on each side of a hard boundary when the index is within the valid area (with ellipsis cells for other runs) - we could show the existing content of the valid region, visualizing: - the string from the strcpy that is untouched by the strcat, - the existing NUL from the strcpy that is being overwritten by the strcat, and - the uninitialized bytes that are being overwritten by the strcat