{"action":"created","issue":{"url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/issues/2","repository_url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp","labels_url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/issues/2/comments","events_url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/issues/2/events","html_url":"https://github.com/Labs64/NetLicensingClient-cpp/issues/2","id":327191323,"node_id":"MDU6SXNzdWUzMjcxOTEzMjM=","number":2,"title":"Heap crash while executing demo application \"netlicensing_client_demo.cc\"","user":{"login":"KrishnanRK","id":39723047,"node_id":"MDQ6VXNlcjM5NzIzMDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/39723047?v=4","gravatar_id":"","url":"https://api.github.com/users/KrishnanRK","html_url":"https://github.com/KrishnanRK","followers_url":"https://api.github.com/users/KrishnanRK/followers","following_url":"https://api.github.com/users/KrishnanRK/following{/other_user}","gists_url":"https://api.github.com/users/KrishnanRK/gists{/gist_id}","starred_url":"https://api.github.com/users/KrishnanRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrishnanRK/subscriptions","organizations_url":"https://api.github.com/users/KrishnanRK/orgs","repos_url":"https://api.github.com/users/KrishnanRK/repos","events_url":"https://api.github.com/users/KrishnanRK/events{/privacy}","received_events_url":"https://api.github.com/users/KrishnanRK/received_events","type":"User","site_admin":false},"labels":[{"id":310176935,"node_id":"MDU6TGFiZWwzMTAxNzY5MzU=","url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/labels/bug","name":"bug","color":"fc2929","default":true},{"id":310176940,"node_id":"MDU6TGFiZWwzMTAxNzY5NDA=","url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"kkorotkov","id":1833750,"node_id":"MDQ6VXNlcjE4MzM3NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1833750?v=4","gravatar_id":"","url":"https://api.github.com/users/kkorotkov","html_url":"https://github.com/kkorotkov","followers_url":"https://api.github.com/users/kkorotkov/followers","following_url":"https://api.github.com/users/kkorotkov/following{/other_user}","gists_url":"https://api.github.com/users/kkorotkov/gists{/gist_id}","starred_url":"https://api.github.com/users/kkorotkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkorotkov/subscriptions","organizations_url":"https://api.github.com/users/kkorotkov/orgs","repos_url":"https://api.github.com/users/kkorotkov/repos","events_url":"https://api.github.com/users/kkorotkov/events{/privacy}","received_events_url":"https://api.github.com/users/kkorotkov/received_events","type":"User","site_admin":false},"assignees":[{"login":"kkorotkov","id":1833750,"node_id":"MDQ6VXNlcjE4MzM3NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1833750?v=4","gravatar_id":"","url":"https://api.github.com/users/kkorotkov","html_url":"https://github.com/kkorotkov","followers_url":"https://api.github.com/users/kkorotkov/followers","following_url":"https://api.github.com/users/kkorotkov/following{/other_user}","gists_url":"https://api.github.com/users/kkorotkov/gists{/gist_id}","starred_url":"https://api.github.com/users/kkorotkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkorotkov/subscriptions","organizations_url":"https://api.github.com/users/kkorotkov/orgs","repos_url":"https://api.github.com/users/kkorotkov/repos","events_url":"https://api.github.com/users/kkorotkov/events{/privacy}","received_events_url":"https://api.github.com/users/kkorotkov/received_events","type":"User","site_admin":false},{"login":"yushkevich","id":3961540,"node_id":"MDQ6VXNlcjM5NjE1NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3961540?v=4","gravatar_id":"","url":"https://api.github.com/users/yushkevich","html_url":"https://github.com/yushkevich","followers_url":"https://api.github.com/users/yushkevich/followers","following_url":"https://api.github.com/users/yushkevich/following{/other_user}","gists_url":"https://api.github.com/users/yushkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/yushkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yushkevich/subscriptions","organizations_url":"https://api.github.com/users/yushkevich/orgs","repos_url":"https://api.github.com/users/yushkevich/repos","events_url":"https://api.github.com/users/yushkevich/events{/privacy}","received_events_url":"https://api.github.com/users/yushkevich/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-05-29T06:56:59Z","updated_at":"2018-07-20T21:00:21Z","closed_at":null,"author_association":"NONE","body":"I have download \"NetLicensingClient-cpp-master\" and built it with curl in windows 10 visual studio 12 2013. While trying to execute \"netlicensing_client_demo.cc \", I am getting heap crash. I have followed the build steps carefully and didn't get any errors or warnings while building. Can somebody help with this issue?\r\n\r\nSteps to reproduce:\r\nLibCurl:\r\n--------\r\n    1) Download the curl-7.56.1 of curl source package.\r\n      https://github.com/curl/curl/releases\r\n    2) Open \"VS2013 x64 Native Tools Command Prompt\" in Windows 10\r\n    3) change directory to \"winbuild\"\r\n    4) Build static lib using nmake command,\r\n       nmake /f Makefile.vc mode=static VC=12 MACHINE=x64 ENABLE_WINSSL=yes\r\n\r\nNetLicensing-CPP:\r\n--------------------\r\n    1) Download git repo from the following link,\r\n      https://github.com/Labs64/NetLicensingClient-cpp\r\n    2) Create build directory\r\n    3) cmake .. -G \"Visual Studio 12 Win64\" -DCURL_INCLUDE_DIR=<include-curl-header-path> -DCURL_LIBRARY=<link-curl-lib-path>\r\n    4) Open and build the solution file in Visual Studio.\r\n\r\nSuccessful build log:\r\n---------------------\r\nD:\\Projects\\NetLicensing\\NetLicensingClient-cpp-master\\build>cmake -G \"Visual Studio 12 Win64\" -DCURL_INCLUDE_DIR=\"d:\\Projects\\NetLicensing\\curl-7.56.1\\curl-7.56.1\\builds\\libcurl-vc12-x64-release-static-ipv6-sspi-winssl\\include\" -DCURL_LIBRARY=\"d:\\Projects\\NetLicensing\\curl-7.56.1\\curl-7.56.1\\builds\\libcurl-vc12-x64-release-static-ipv6-sspi-winssl\\lib\\libcurl_a.lib\" ..\r\n-- The C compiler identification is MSVC 18.0.40629.0\r\n-- The CXX compiler identification is MSVC 18.0.40629.0\r\n-- Check for working C compiler using: Visual Studio 12 2013 Win64\r\n-- Check for working C compiler using: Visual Studio 12 2013 Win64 -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Check for working CXX compiler using: Visual Studio 12 2013 Win64\r\n-- Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Found CURL: d:/Projects/NetLicensing/curl-7.56.1/curl-7.56.1/builds/libcurl-vc12-x64-release-static-ipv6-sspi-winssl/lib/libcurl_a.lib (found version \"7.56.1\")\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: D:/Projects/NetLicensing/NetLicensingClient-cpp-master/build\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/issues/comments/406725674","html_url":"https://github.com/Labs64/NetLicensingClient-cpp/issues/2#issuecomment-406725674","issue_url":"https://api.github.com/repos/Labs64/NetLicensingClient-cpp/issues/2","id":406725674,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjcyNTY3NA==","user":{"login":"renaud-sc","id":32649943,"node_id":"MDQ6VXNlcjMyNjQ5OTQz","avatar_url":"https://avatars0.githubusercontent.com/u/32649943?v=4","gravatar_id":"","url":"https://api.github.com/users/renaud-sc","html_url":"https://github.com/renaud-sc","followers_url":"https://api.github.com/users/renaud-sc/followers","following_url":"https://api.github.com/users/renaud-sc/following{/other_user}","gists_url":"https://api.github.com/users/renaud-sc/gists{/gist_id}","starred_url":"https://api.github.com/users/renaud-sc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renaud-sc/subscriptions","organizations_url":"https://api.github.com/users/renaud-sc/orgs","repos_url":"https://api.github.com/users/renaud-sc/repos","events_url":"https://api.github.com/users/renaud-sc/events{/privacy}","received_events_url":"https://api.github.com/users/renaud-sc/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T21:00:21Z","updated_at":"2018-07-20T21:00:21Z","author_association":"NONE","body":"I am getting a crash too. It may or may not be the same issue. The crash happens in netlicensing.cc line 185 while trying to parse the answer received from the server.\r\n\r\nThe answer from the server looks like this:\r\n{\"Signature\":null,\"infos\":{\"info\":[{\"value\":\"Requested licensee does not exist and the productNumber is not provided\",\"id\":\"NotFoundException\",\"type\":\"ERROR\"}]},\"items\":null,\"id\":null,\"ttl\":null}\r\nWhich I guess  justify why a crash when trying to parse \"null\" as a date ;-)\r\n\r\nAs I am fully new to netLiceensing, it's bit hard for me to know why these values are \"null\". Could anyone help ?\r\n\r\nIt would probably be a good idea to make the demo code a little bit more solid anyway.\r\n"}}
{"actor":{"display_login":"renaud-sc"}}