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

mpiext.c: remove unsafe sprintf() calls and reduce code duplication. #9

Closed congma closed 7 years ago

congma commented 7 years ago

sprintf() calls that fill an error-message buffer with string interpolation are replaced with safer snprintf() calls. The messages may be truncated.

Also, some duplicate exception-raising codes are cleaned up.

congma commented 7 years ago

Sorry for the spam. Sent the wrong branch as pull request.

daleroberts commented 7 years ago

No problem. Happy to accept a patch.

On Mon, Oct 31, 2016 at 2:32 PM, Cong Ma notifications@github.com wrote:

Sorry for the spam. Sent the wrong branch as pull request.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/daleroberts/pypar/pull/9#issuecomment-257207284, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjjJDd2nqZI0YuaErIWKUCOy0t9-OD3ks5q5WFDgaJpZM4KkEcD .