diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-01-02 08:56:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-01-02 09:45:18 (GMT) |
commit | 312bef563a5be72f6423377247db1b80044bf711 (patch) | |
tree | 3a656445fa67469b2f1783932fe127e9f39af69a /vhdlparser | |
parent | ed39dab59f8af2c5b42cfac0b3140cf594412121 (diff) | |
download | Doxygen-312bef563a5be72f6423377247db1b80044bf711.zip Doxygen-312bef563a5be72f6423377247db1b80044bf711.tar.gz Doxygen-312bef563a5be72f6423377247db1b80044bf711.tar.bz2 |
Fixed a couple of cases where sharing string data could lead to corruption
Also made dangerous string access more visible by introducing rawData().
This replaces data() which will now return a constant string.
Diffstat (limited to 'vhdlparser')
-rw-r--r-- | vhdlparser/VhdlParser.h | 2 | ||||
-rw-r--r-- | vhdlparser/vhdlparser.jj | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vhdlparser/VhdlParser.h b/vhdlparser/VhdlParser.h index 12631dd..e4c92d0 100644 --- a/vhdlparser/VhdlParser.h +++ b/vhdlparser/VhdlParser.h @@ -8976,7 +8976,7 @@ static void addProto(const char *s1,const char *s2,const char *s3,const char *s4 static void addConfigureNode(const char* a,const char*b, bool,bool isLeaf,bool inlineConf); static void createFunction(const char *impure,uint64 spec,const char *fname); static void addVhdlType(const char *n,int startLine,int section, uint64 spec,const char* args,const char* type,Protection prot); -static void addCompInst(char *n, char* instName, char* comp,int iLine); +static void addCompInst(const char *n, const char* instName, const char* comp,int iLine); static void handleCommentBlock(const char* doc,bool brief); static void handleFlowComment(const char*); static void initEntry(Entry *e); diff --git a/vhdlparser/vhdlparser.jj b/vhdlparser/vhdlparser.jj index 0225183..aa42127 100644 --- a/vhdlparser/vhdlparser.jj +++ b/vhdlparser/vhdlparser.jj @@ -55,7 +55,7 @@ static void addProto(const char *s1,const char *s2,const char *s3,const char *s4 static void addConfigureNode(const char* a,const char*b, bool,bool isLeaf,bool inlineConf); static void createFunction(const char *impure,uint64 spec,const char *fname); static void addVhdlType(const char *n,int startLine,int section, uint64 spec,const char* args,const char* type,Protection prot); -static void addCompInst(char *n, char* instName, char* comp,int iLine); +static void addCompInst(const char *n, const char* instName, const char* comp,int iLine); static void handleCommentBlock(const char* doc,bool brief); static void handleFlowComment(const char*); static void initEntry(Entry *e); |