Commit Graph

12 Commits

Author SHA1 Message Date
Svyatoslav Krasnov f0f023a695 replace sprintf->snprintf, strcmp->strncmp where possible 2022-07-12 11:48:37 +00:00
Svyatoslav Krasnov ba2754d36b replace array int sizes to MAXPATHLEN and MD5_LEN where possible 2022-07-12 10:56:38 +00:00
Svyatoslav Krasnov 097fb464ed add check_download_file function 2022-06-25 19:44:28 +00:00
David Anderson 0a62f0e9af scheduler: if plan class name contains "amd", assume it's AMD GPU
The docs said this was the case, but it wasn't.
2019-06-27 12:26:20 -07:00
Vitalii Koshura 1ce3793c76
Remove unused BOINC_RCSID constants
This fixes #2953

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-01-12 23:43:48 +02:00
Christian Beer 614376be84 Sched: make get_file_size request in file_upload_handler read-only
* If there is a size discrepancy between server and client this needs to be handled in handle_file_upload()
* Setting a write lock on a read only file does not work obviously. Instead try to see if another process has a write lock and continue if not. If another process is still writing to the file there is no need to determine the size.
2017-08-22 11:40:44 +02:00
Christian Beer 4892976d90 use safe_strcat() to prevent buffer overflow
fixes CID 27828 found by Coverity
2015-10-28 11:15:21 +01:00
Christian Beer 88351bcbdc ignore unchecked return value
ignore CID 27729 found by Coverity
2015-10-28 11:11:55 +01:00
Christian Beer b031fff422 check return value of mkdir()
Also gives a more sensible error message where get_log_path() is used.
fixes CID 27696 found by Coverity
2015-10-28 10:50:15 +01:00
Christian Beer 851412a5ec use snprintf to prevent buffer overflow
fixes CID 27969, 28010, 28027 found by Coverity
2015-10-21 17:27:19 +02:00
David Anderson c2a0421074 scheduler: add support for miner_asic coprocessor type
I.e. treat miner ASICs as a distinct processor type;
send miner_asic jobs only if the client requests them.

Note: I was planning to do this in a more general way,
in which the scheduler wouldn't have a hard-wired list of processor types.
However, that would be a large code change,
so for now I just added miner_asic to the list of processor types
(nvidia, ati, intel_gpu),
and made various changes to get things to work.

Also: in the job dispatch logic, try to send coproc jobs
before CPU jobs.
That way if e.g. there's a limit on jobs in progress,
we'll preferentially send coproc jobs.
2014-09-21 21:08:09 -07:00
David Anderson aca1aead5f server: shuffle code so that the file upload handler doesn't need MySQL
Also (client): remove notices about app_config.xml after problem is fixed
2014-06-17 18:07:45 -07:00