daleroberts / pypar

Efficient and scalable parallelism using the message passing interface (MPI) to handle big data and highly computational problems.
GNU General Public License v3.0
69 stars 15 forks source link

Remove unsafe string formatting (sprintf) when forming error messages #10

Closed congma closed 8 years ago

congma commented 8 years ago

Remove potentially buffer-overflowing calls to sprintf when formatting error messages.

Instead, use PyErr_Format to set Python exception with formatted message.

daleroberts commented 8 years ago

Thanks!