[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-12-15 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: Yes, it is (at the latest since msg124018). -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10509

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Andreas Stührk
New submission from Andreas Stührk andy-pyt...@hammerhartes.de: If a non-ascii character is found and there isn't an encoding cookie, a SyntaxError is raised (in `decoding_fgets`) that includes the path of the file (using ``tok-filename``), but that path is never set. You can easily reproduce

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- keywords: +patch Added file: http://bugs.python.org/file19775/PyTokenizer_FindEncoding_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10509

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10509 ___

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: Is this a duplicate of issue 9319? -- nosy: +ron_adam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10509 ___