Commit graph

14 commits

Author SHA1 Message Date
John Jones
58a6240af9 Fixed bug on odd byte ip addresses
IP addresses that when converted to an integer ended up as a string with
an odd number of bytes would result in a memory read into invalid
memory. Zero filled the text string representation of the bytes to avoid
this issue.
2017-07-13 18:29:02 -05:00
John Jones
603ed1d72f Fixed multiaddress_get_peer_id to return allocated memory
Returing in place causes problems with continuations i.e. ending
slashes. Therefore it is better to return allocated memory.
2017-04-17 11:56:36 -05:00
John Jones
4cbcf6be3d Test that proves MultiAddress not handling 0s properly 2017-04-03 22:01:46 -05:00
John Jones
615adc86ef Added ability to parse out peer id 2017-04-03 11:54:15 -05:00
John Jones
e914307a4d Added some utility methods to make parsing easier 2017-03-09 18:20:56 -05:00
John Jones
0b8789ebbc Bug fixes 2017-02-20 17:45:48 -05:00
John Jones
4e281ddd08 Added testing framework 2017-02-20 15:58:19 -05:00
John Jones
29a68c8f55 Multiple fixes to code 2017-02-15 10:42:06 -05:00
John Jones
bb488f7e82 More in line with existing code. Refactored naming. 2017-02-13 14:12:32 -05:00
John Jones
78ce39b067 renamed struct maddr to MultiAddress 2017-02-13 13:30:22 -05:00
John Jones
d57e026fbf Moved functionality from headers to c files so that we can compile 2017-02-13 13:25:43 -05:00
John Jones
68ca649688 Directory structure changes
Made an include directory to avoid naming conflicts with other projects.
Also added a Makefile to help with building the library and testing
application. Note: This does not build due to what appears to be a
missing codec.h file.
2016-11-14 08:03:48 -05:00
xethyrion
36f4f4e1b8 additional notes 2016-11-08 14:57:13 +02:00
xethyrion
ebc0e05b8b Add files via upload 2016-11-06 03:57:36 +02:00