Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Escape characters in function names #18

@itsacoderepo

Description

@itsacoderepo

Description

The CPG contains function names with escape sequences, eg. CHAT_PROTOCOL(server)->\\n\\t\\t\\tquery_create. It seems to be a parsing error of:

		query = CHAT_PROTOCOL(server)->
			query_create(server->tag, nick, TRUE);

See: https://github.com/irssi/irssi/blob/master/src/fe-common/core/fe-queries.c#L53-L54

Reproduction steps

  1. CPG creation:
$ git clone https://github.com/irssi/irssi
$ ./fuzzyc2cpg.sh irssi/src/ --out irssi.bin.zip 
  1. Load the CPG and search the function
ocular> loadCpg("irssi.bin.zip") 
ocular> cpg.method.fullName("CHAT.*query_create.*").fullName.p 
res5: List[String] = List("CHAT_PROTOCOL(server)->\\n\\t\\t\\tquery_create")

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions