MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / NewSymbol

Function NewSymbol

hyperdbg/script-engine/code/script-engine.c:3665–3683  ·  view source on GitHub ↗

* @brief Allocates a new SYMBOL and returns the reference to it * * @return PSYMBOL */

Source from the content-addressed store, hash-verified

3663 * @return PSYMBOL
3664 */
3665PSYMBOL
3666NewSymbol(void)
3667{
3668 PSYMBOL Symbol;
3669 Symbol = (PSYMBOL)malloc(sizeof(SYMBOL));
3670
3671 if (Symbol == NULL)
3672 {
3673 //
3674 // There was an error allocating buffer
3675 //
3676 return NULL;
3677 }
3678
3679 Symbol->Value = 0;
3680 Symbol->Len = 0;
3681 Symbol->Type = 0;
3682 return Symbol;
3683}
3684
3685/**
3686 * @brief Allocates a new SYMBOL with string type and returns the reference to it

Callers 3

ScriptEngineParseFunction · 0.85
CodeGenFunction · 0.85
ToSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected