CREDITSCOM / node

Credits Node is the main module that provide an opportunity to run a node and participate in CREDITS blockchain network.
https://developers.credits.com/
GNU Affero General Public License v3.0
151 stars 16 forks source link

выход за пределы массива #41

Closed alexeyneu closed 5 years ago

alexeyneu commented 5 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: использовать limit на максисмум и ненулевой offset

Expected behavior ничего хорошего

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): любая

Smartphone (please complete the following information): любой

Additional context https://github.com/CREDITSCOM/node/blob/9dfff31f705a3e5fbec9508ea64c6b721bea1bcb/api/src/apihandler.cpp#L508-L510
эти вещи code analyzer схватывает вроди. в msvc team edition он был

alexeyneu commented 5 years ago

transactionsCount -= offset;
неграмотное использование

botstorm commented 5 years ago

@alexeyneu Please use english language