AdamRLukaitis / simple-opencl

Automatically exported from code.google.com/p/simple-opencl
0 stars 0 forks source link

_sclLoadProgramSource (called from sclGetCLSoftware) does not validate path #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call sclGetCLSoftware with an invalid path
2. _sclProgramSource return 0

What is the expected output? What do you see instead?

An error message should be displayed to notify the user.

It sent returned 0 to the next function (_sclLoadProgramSource) instead.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by conta...@rafagarcia.net on 13 Sep 2013 at 9:45

GoogleCodeExporter commented 9 years ago
r166 send notify to the user about an error with load program.

I tried to handle the error without returning 0 but produces a segfault. It 
need a complete revision about how to handle every error on the library (it 
will be another issue).

Original comment by conta...@rafagarcia.net on 24 Sep 2013 at 11:39

GoogleCodeExporter commented 9 years ago
Previous comment (about error handling) related with issue 14

Original comment by conta...@rafagarcia.net on 24 Sep 2013 at 11:49