platinum4
280a64e537
Squelch "Network diff set" unless --more-notices
...
space " "
2014-06-09 17:51:01 +02:00
Jan Berdajs
25d7d426fd
convert tabs to spaces in most commonly modified files
2014-06-09 17:45:06 +02:00
Jan Berdajs
2ea8f5d018
just in case, read-lock devices
2014-06-09 17:31:22 +02:00
Jan Berdajs
9fdd23e6ff
since mining_threads count can change, we need to lock more carefully and get_thread function is not helpful anymore
2014-06-09 17:25:24 +02:00
Jan Berdajs
2877e8d49c
of course it needs to be a write lock! fixes segfault
2014-06-09 17:02:14 +02:00
Jan Berdajs
d1f7ef6133
is already locked at this point
2014-06-09 16:33:35 +02:00
Jan Berdajs
954c0e6fbc
fix opt_kernel_path writing over the allocated memory! also some small changes for more robust hard restart
2014-06-09 15:56:39 +02:00
Jan Berdajs
77c996858b
fix compiler warning and indentation
2014-06-09 02:37:07 +02:00
platinum4
a5fd98c832
declare opt_morenotices;
2014-06-09 02:35:13 +02:00
platinum4
0f9bf18172
Add option --more-notices & shorten stale submit
2014-06-09 02:35:07 +02:00
Jan Berdajs
ff05aacdc3
attempt to fix memory issues when doing curl calls
...
From curl CURLOPT_ERRORBUFFER docs: You must keep the associated storage available until libcurl no longer needs it. Failing to do so will cause very odd behavior or even crashes. libcurl will need it until you call curl_easy_cleanup(3) or you set the same option again to use a different pointer.
2014-06-09 01:17:29 +02:00
Jan Berdajs
ff787bcfbd
add docs about the new hamsi-expand-big setting
2014-06-08 20:42:59 +02:00
Jan Berdajs
e134ab75ad
move algorithm-specific OpenCL compile options into algorithm_t
2014-06-08 20:36:45 +02:00
Jan Berdajs
881355d873
add --hamsi-expand-big option for setting EXPAND_BIG in X13 kernels
2014-06-08 20:36:39 +02:00
Jan Berdajs
5e3142cf68
remove unused code (mostly intended for ASICs which are not supported in sgminer), fix some compiler warnings
2014-06-08 20:36:33 +02:00
Jan Berdajs
cabbd7362f
refactor initCl more
2014-06-08 20:36:25 +02:00
troky
a564c24a4d
MSVS: project cleanup and reorder.
2014-06-08 11:32:43 +02:00
Jan Berdajs
d04c096403
add ocl/ files to MSVC project
2014-06-08 03:26:50 +02:00
Jan Berdajs
e5779e1e26
move algorithms into separate folder
2014-06-08 03:26:42 +02:00
Jan Berdajs
c25a59bab1
refactor building/loading/saving OpenCL kernel
2014-06-08 02:04:31 +02:00
troky
04c0aeed3e
MSVS: Removed Curl includes from sgminer tree as they are provided from Curl source archive.
2014-06-07 12:23:07 +02:00
troky
bc1c620b07
MSVS: Updated libcurl Makefile to v7.37.0
2014-06-07 12:13:45 +02:00
Jan Berdajs
6152638dd7
fix compile without ADL
2014-06-06 13:52:59 +02:00
Jan Berdajs
518d6e9eca
Merge pull request #236 from Blagodarenko/v5_0
...
fix "diff 0.000/0.000"
2014-06-06 12:47:00 +02:00
blagodarenko
1bca4a7921
fix "diff 0.000/0.000"
2014-06-06 14:16:32 +04:00
troky
1bb452e321
Fixed kernel path bug introduced in 8198286597
2014-06-06 09:20:39 +02:00
Jan Berdajs
e3290db1bb
Merge pull request #231 from tupieurods/feature
...
Total uptime drop fix
2014-06-06 02:35:11 +02:00
Anatoly
32824e56a0
Total uptime drop fix
2014-06-06 08:03:30 +08:00
Noel Maersk
5cc43f2f16
misc: ChangeLog typo.
...
Testing IRC commit bot.
2014-06-06 02:50:09 +03:00
Noel Maersk
411a41354e
Merge branch 'dejavusec-backport'
...
Cherry-picked from v5_0.
Fixes for a few security vulnerabilities reported by Mick Ayzenberg of DejaVu Security.
2014-06-06 00:20:41 +03:00
Noel Maersk
ae7dbca783
stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
...
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this.
2014-06-06 00:20:07 +03:00
Noel Maersk
cab6e28b12
stratum: parse_reconnect(): treat pool-sent URL as untrusted.
...
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for reminding
that this existed and highlighting the offender.
Also to Luke-jr for actually fixing this in bfgminer. :D
2014-06-06 00:19:59 +03:00
Luke Dashjr
91d29ea972
Stratum: extract_sockaddr: Truncate overlong addresses rather than stack overflow
...
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
2014-06-06 00:19:51 +03:00
Luke Dashjr
44e770904e
Bugfix: initiate_stratum: Ensure extranonce2 size is not negative (which could lead to exploits later as too little memory gets allocated)
...
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
2014-06-06 00:19:48 +03:00
troky
1f73ae040e
Merge branch 'v5_0' of https://github.com/sgminer-dev/sgminer into v5_0
2014-06-05 23:12:38 +02:00
troky
8198286597
Fixed MSVS build.
2014-06-05 23:11:29 +02:00
troky
2588394e32
Added null-termination for kernel build log.
2014-06-05 23:07:55 +02:00
Jan Berdajs
00d17d16fe
fix segfault (watchdog thread declares threads sick and tries to restart them while they are already being restarted)
2014-06-05 22:57:20 +02:00
Noel Maersk
a5bec2b999
Merge branch 'dejavusec' into v5_0
...
Fixes for a few security vulnerabilities reported by Mick Ayzenberg
of DejaVu Security.
2014-06-05 23:08:38 +03:00
Noel Maersk
910c360899
stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
...
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this.
2014-06-05 23:07:47 +03:00
Noel Maersk
4f387321ce
misc: update AUTHORS.md, add CR to sgminer.c, minor style.
2014-06-05 23:07:14 +03:00
Noel Maersk
78cc408369
stratum: parse_reconnect(): treat pool-sent URL as untrusted.
...
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for reminding
that this existed and highlighting the offender.
Also to Luke-jr for actually fixing this in bfgminer. :D
2014-06-05 23:07:08 +03:00
Luke Dashjr
b65574bef2
Stratum: extract_sockaddr: Truncate overlong addresses rather than stack overflow
...
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
2014-06-05 21:29:44 +03:00
Luke Dashjr
bac5831b35
Bugfix: initiate_stratum: Ensure extranonce2 size is not negative (which could lead to exploits later as too little memory gets allocated)
...
Thanks to Mick Ayzenberg <mick@dejavusecurity.com> for finding this!
2014-06-05 21:20:25 +03:00
Jan Berdajs
f0e47ec8ec
make sure reinit_device cannot happen while algo switching, which would probably result in segfault
2014-06-05 18:40:27 +02:00
Jan Berdajs
e58cd00db7
fix bug in thread_reportin (watchdog can detect getwork is false before thr->last is set), and a few cosmetic changes
2014-06-05 18:35:46 +02:00
troky
b8a1c1f660
MSVS compatibility update.
2014-06-05 10:20:43 +02:00
troky
68c54c226c
Partially reverting e4a4efdb42
to keep MSVS compatibility.
2014-06-05 10:19:27 +02:00
Jan Berdajs
e4a4efdb42
fix some potential memory leaks, remove a few old unused functions
2014-06-05 00:13:43 +02:00
Jan Berdajs
87bbca6148
only change gpu engine, memclock, fans, if ADL is enabled
2014-06-05 00:13:34 +02:00