[issue3306] audioop.findmax() crashs with negative length

2008-07-07 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Commited in r64775. Thank you very much!! -- nosy: +facundobatista resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3306] audioop.findmax() crashs with negative length

2008-07-06 Thread STINNER Victor
New submission from STINNER Victor <[EMAIL PROTECTED]>: Example: >>> import audioop >>> audioop.findmax(''.join( chr(x) for x in xrange(256)), -2392392) Erreur de segmentation (core dumped) The problem is that audioop_findmax() doesn't check len2 for negative value. Here is a patch ;-) ---