All reports
Medium

sqlparse: formatting list of tuples leads to denial of service

Affected versions

Affected versions
<= 0.5.3
Fixed version
0.5.4

Description

Summary

The below gist hangs while attempting to format a long list of tuples.

This was found while drafting a regression test for Dja ngo 5.2's composite primary key feature, which allows querying composite fields with tuples.

Links

Credits

  • jacobtylerwalls