fluidasserts.lang.rpgle module

This module allows to check RPGLE code vulnerabilities.

fluidasserts.lang.rpgle.LANGUAGE_SPECS = {'block_comment_end': None, 'block_comment_start': None, 'extensions': ('rpg', 'rpgle'), 'line_comment': ('//', '*')}
fluidasserts.lang.rpgle.has_dos_dow_sqlcod(rpg_dest, exclude=None)

Search for DoS for using DoW SQLCOD = <ZERO>.

Parameters
  • rpg_dest (str) – Path to a RPG source or directory.

  • exclude (Optional[list]) – Paths that contains any string from this list are ignored.

Return type

bool

fluidasserts.lang.rpgle.has_generic_exceptions(rpg_dest, exclude=None)

Search for on-error empty.

See REQ. 161.

Parameters
  • rpg_dest (str) – Path to a RPG source or directory.

  • exclude (Optional[list]) – Paths that contains any string from this list are ignored.

Return type

bool

fluidasserts.lang.rpgle.has_unitialized_vars(rpg_dest, exclude=None)

Search for unitialized variables.

Parameters
  • rpg_dest (str) – Path to a RPG source or directory.

  • exclude (Optional[list]) – Paths that contains any string from this list are ignored.

Return type

bool

fluidasserts.lang.rpgle.swallows_exceptions(rpg_dest, exclude=None)

Search for on-error without code.

See REQ.075.

Parameters
  • rpg_dest (str) – Path to a RPG source or directory.

  • exclude (Optional[list]) – Paths that contains any string from this list are ignored.

Return type

bool