dafx / pyo

Automatically exported from code.google.com/p/pyo
GNU General Public License v3.0
0 stars 0 forks source link

CurveTable does not check list is valid crashes. #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Try to create a CurveTable with a index bigger than the size

e.g.

tab=CurveTable([(0,0),(2048,.5),(4096,.2),(6144,.5),(8192,0)], 0, 20,1024)

What is the expected output?

Error message should be produced.

 What do you see instead?

*** glibc detected *** /usr/bin/python2.6: free(): invalid next size (normal): 
0x0000000001b21200 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7ff183b4c5b6]
/lib/libc.so.6(+0x7cce4)[0x7ff183b51ce4]
/lib/libc.so.6(__libc_memalign+0xc2)[0x7ff183b52672]
/lib/libc.so.6(posix_memalign+0x5e)[0x7ff183b528ee]
/lib/libglib-2.0.so.0(+0x60538)[0x7ff179f34538]
/lib/libglib-2.0.so.0(g_slice_alloc+0x6d3)[0x7ff179f34dc3]
/lib/libglib-2.0.so.0(g_ptr_array_sized_new+0x11)[0x7ff179eedb81]
/lib/libglib-2.0.so.0(g_main_context_new+0x7b)[0x7ff179f1795b]
/lib/libglib-2.0.so.0(g_main_context_default+0xbd)[0x7ff179f17b4d]
/lib/libglib-2.0.so.0(g_source_attach+0x1ed)[0x7ff179f1941d]
/lib/libglib-2.0.so.0(g_idle_add_full+0x65)[0x7ff179f194b5]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_Z26wxapp_install_idle_handlerv+0x55)[0x7ff17
cb25355]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN5wxAppC2Ev+0x34)[0x7ff17cb254a4]
/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core_.so(_ZN7wxPyAppC
1Ev+0x9)[0x7ff17df74729]
/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core_.so(+0x99f6f)[0x
7ff17dfd0f6f]
/usr/bin/python2.6(PyEval_EvalFrameEx+0x4f17)[0x4a7a07]
/usr/bin/python2.6(PyEval_EvalCodeEx+0x911)[0x4a9671]
/usr/bin/python2.6[0x537620]
/usr/bin/python2.6(PyObject_Call+0x47)[0x41f0c7]
/usr/bin/python2.6[0x427dff]
/usr/bin/python2.6(PyObject_Call+0x47)[0x41f0c7]
/usr/bin/python2.6(PyEval_EvalFrameEx+0x4888)[0x4a7378]
/usr/bin/python2.6(PyEval_EvalCodeEx+0x911)[0x4a9671]
/usr/bin/python2.6[0x537620]
/usr/bin/python2.6(PyObject_Call+0x47)[0x41f0c7]
/usr/bin/python2.6[0x427dff]
/usr/bin/python2.6(PyObject_Call+0x47)[0x41f0c7]
/usr/bin/python2.6(PyEval_EvalFrameEx+0x4888)[0x4a7378]
/usr/bin/python2.6(PyEval_EvalCodeEx+0x911)[0x4a9671]
/usr/bin/python2.6[0x537620]
/usr/bin/python2.6(PyObject_Call+0x47)[0x41f0c7]
/usr/bin/python2.6[0x427dff]
/usr/bin/python2.6(PyObject_Call+0x47)[0x41f0c7]
/usr/bin/python2.6[0x477bff]
/usr/bin/python2.6[0x46f47f]
/usr/bin/python2.6(PyObject_Call+0x47)[0x41f0c7]
/usr/bin/python2.6(PyEval_EvalFrameEx+0x4888)[0x4a7378]
/usr/bin/python2.6(PyEval_EvalFrameEx+0x5a60)[0x4a8550]

What version of the product are you using? On what operating system?

Latest from svn.  linux 64bit

Please provide any additional information below.

Original issue reported on code.google.com by PaulJohnLeonard on 2 May 2012 at 1:38

GoogleCodeExporter commented 9 years ago
Yep. The list should be truncated to "size". I will fix it...

Original comment by belan...@gmail.com on 3 May 2012 at 1:51

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r969.

Original comment by belan...@gmail.com on 9 May 2012 at 2:51