mirror of
https://github.com/vivisect/vivisect
synced 2026-06-08 18:04:23 +00:00
Fix: syntax error discovered by pytocs (#318)
* Fix: Non-terminated string constant `visgraph/renderers/svgrend.py` is missing a terminating apostrophe on line 41. * Incorrect extra closing parenthesis removed * Possible missing comment character '#' Co-authored-by: atlas0fd00m <atlas@r4780y.com>
This commit is contained in:
@@ -222,4 +222,4 @@ class HookBpTest6(v_testmods.VtracePythonTest):
|
||||
# TODO: I don't think these are run....
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
sys.exit(31) TODO: tests for something NOT in impapi
|
||||
sys.exit(31) # TODO: tests for something NOT in impapi
|
||||
|
||||
@@ -38,7 +38,7 @@ class SvgGraphRenderer(vg_render.GraphRenderer):
|
||||
|
||||
def endRender(self):
|
||||
# Actually write out the file.
|
||||
with open(self.svgfile, 'wb) as f:
|
||||
with open(self.svgfile, 'wb') as f:
|
||||
f.write('<?xml version="1.0" standalone="no"?>\n')
|
||||
#f.write('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >\n')
|
||||
xsize = self._vg_canvas_width
|
||||
|
||||
@@ -33,7 +33,7 @@ def _loadMacho(vw, filebytes, filename=None, baseaddr=None):
|
||||
|
||||
# grab md5 and sha256 hashes before we modify the bytes
|
||||
fhash = viv_parsers.md5Bytes(filebytes)
|
||||
sha256 = v_parsers.sha256Bytes(filebytes))
|
||||
sha256 = v_parsers.sha256Bytes(filebytes)
|
||||
|
||||
# Check for the FAT binary magic...
|
||||
if binascii.hexlify(filebytes[:4]) in ('cafebabe', 'bebafeca'):
|
||||
|
||||
Reference in New Issue
Block a user