mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-03-05 14:29:47 +00:00
Terminate PCH generation if an #append is encountered.
If the appended file was another C file and that file contained an #include, this would create an invalid record in the sym file. It would record memory from the buffer holding the original file to the buffer holding the appended file. In general, these are not contiguous, so superfluous data from other parts of memory would be included in the sym file. This record would normally just be treated as invalid on subsequent compiles, but it could theoretically be very large (depending on the memory layout) and might contain sensitive data from other parts of memory.
This commit is contained in:
parent
1e98a63bf4
commit
a73dce103b
@ -2316,6 +2316,7 @@ var
|
||||
tbool: boolean; {temp boolean}
|
||||
|
||||
begin {DoAppend}
|
||||
TermHeader;
|
||||
tbool := OpenFile(false, false); {open a new file and proceed from there}
|
||||
lineNumber := 1;
|
||||
end; {DoAppend}
|
||||
|
Loading…
x
Reference in New Issue
Block a user