[fossology/fossology] b4b48f: fix(wget_agent/agent_tests): Fix unit tests to com...


Andreas Reichel <noreply@...>
 

Branch: refs/heads/andreas/test
Home: https://github.com/fossology/fossology
Commit: b4b48fb602c47aa03f65b4f8c8d84bc0a117d16c
https://github.com/fossology/fossology/commit/b4b48fb602c47aa03f65b4f8c8d84bc0a117d16c
Author: Andreas J. Reichel <andreas.reichel@...>
Date: 2019-08-27 (Tue, 27 Aug 2019)

Changed paths:
M src/wget_agent/agent_tests/Unit/wget_agent/testDBLoadGold.c
M src/wget_agent/agent_tests/Unit/wget_agent/testGetURL.c
M src/wget_agent/agent_tests/Unit/wget_agent/testSetEnv.c

Log Message:
-----------
fix(wget_agent/agent_tests): Fix unit tests to compile

Signed-off-by: Andreas J. Reichel <andreas.reichel@...>


Commit: 45835c1fed280098991600042f705a441e40d88a
https://github.com/fossology/fossology/commit/45835c1fed280098991600042f705a441e40d88a
Author: Andreas J. Reichel <andreas.reichel@...>
Date: 2019-08-27 (Tue, 27 Aug 2019)

Changed paths:
M src/wget_agent/agent/main.c
M src/wget_agent/agent/wget_agent.c

Log Message:
-----------
refactor(wget_agent): Make it more readable

Improve code formating a little for further changes

Signed-off-by: Andreas J. Reichel <andreas.reichel@...>


Commit: 4d862e2e3a17f8ec64de03683ab67492a2a96355
https://github.com/fossology/fossology/commit/4d862e2e3a17f8ec64de03683ab67492a2a96355
Author: Andreas J. Reichel <andreas.reichel@...>
Date: 2019-08-27 (Tue, 27 Aug 2019)

Changed paths:
M src/wget_agent/agent/wget_agent.c

Log Message:
-----------
fixup: Fix error case of SHA256 calc


Commit: 0a77bf591a7e392fd412b9311ad317be2b206be8
https://github.com/fossology/fossology/commit/0a77bf591a7e392fd412b9311ad317be2b206be8
Author: Andreas J. Reichel <andreas.reichel@...>
Date: 2019-08-27 (Tue, 27 Aug 2019)

Changed paths:
M src/wget_agent/agent/wget_agent.c
M src/wget_agent/agent/wget_agent.h

Log Message:
-----------
fix(wget_agent): Use asprintf instead of sprintf/snprintf

asprintf allocates as much memory as is needed, so no buffer
size guessing is necessary and no buffer overflow occurs.

This function requires GNU_SOURCE, which is no problem with the
project's LICENSE file.

Signed-off-by: Andreas J. Reichel <andreas.reichel@...>


Compare: https://github.com/fossology/fossology/compare/b4b48fb602c4%5E...0a77bf591a7e

Join fossology-commits@lists.fossology.org to automatically receive all group messages.