Merge pull request #2438 from WalterBright/fix10735

fix Issue 10735 - Buffer overflow bug in symbol_generate()