Commit Graph

124 Commits

Author SHA1 Message Date
Julius Pfrommer 33bd9b0184 refactor(core): Simplify message assembly in SecureChannel 2020-04-02 00:11:22 +02:00
Julius Pfrommer 312a4351cc refactor(core): Rename packet to buffer in SecureChannel 2020-04-02 00:11:22 +02:00
Julius Pfrommer c782610c02 fix(fuzz): Use correct username/password in the fuzzer 2020-01-26 12:39:37 +01:00
Julius Pfrommer f2c91e2125 fix(fuzz): FIx non-terminating corpus generation 2020-01-26 12:39:37 +01:00
Julius Pfrommer 44fab17f26 feat(tests): Better logging of fuzzing 2020-01-26 12:39:37 +01:00
Julius Pfrommer c461a7fb24 fix(tests): Open custom SecureChannel for fuzz message dumping 2020-01-25 19:33:26 +01:00
Julius Pfrommer a25bb75393 refactor(core): Move ConnectionConfig into SecureChannel 2020-01-18 21:15:08 +01:00
Julius Pfrommer d332c9d40b refactor(core): Assemble complete chunks in the SecureChannel 2020-01-18 21:15:08 +01:00
Stefan Profanter 92e0e8ca8b fix(fuzz): Temporarily disable run_fuzzer for mdns (produces false positives) 2019-11-22 13:10:16 +01:00
Stefan Profanter 000b2a95c7 ci(fuzz): Error if tcp fuzzing can not be started 2019-11-08 09:12:07 +01:00
Stefan Profanter 0f1192c99a ci(fuzz): Add fuzzing for base64 encoding and decoding 2019-11-07 19:28:33 +01:00
Stefan Profanter cdd7abc6a6 ci(fuzz): Add author to license header 2019-11-07 19:28:33 +01:00
Julius Pfrommer c6b6ed85b2 fix(build): Fix an undefined function warning for fuzzing 2019-10-30 14:07:57 +01:00
Stefan Profanter 47fcbfc672 ci(fuzz): Fix correct initialization of TCP server for fuzzing 2019-10-25 07:42:27 +02:00
Julius Pfrommer 7cad87fa7c feature(plugin): Recover the old hash-map based Nodestore 2019-10-21 17:09:53 +02:00
Stefan Profanter 3ec6b8e1c1 ci: Add mdns_xht fuzzer 2019-10-17 14:37:30 +02:00
Stefan Profanter 0924ffb96d ci: Check if server config initialization was success 2019-10-14 15:59:05 +02:00
Stefan Profanter e1c93c17cd fix: Mute custom memory manager if address entry not found 2019-10-14 15:59:05 +02:00
Stefan Profanter 6cff3c2c66 ci: Add tcp_fuzz_message fuzzer 2019-10-14 15:59:05 +02:00
Stefan Profanter 7967cb3908 ci: Correctly name fuzz corpus to avoid name clash 2019-10-10 10:28:03 +02:00
Stefan Profanter 4e7b4b342a ci: Update corpus for fuzzing 2019-10-10 09:39:46 +02:00
Stefan Profanter 6991231e4e ci: Add mdns to oss-fuzz.
Fixes https://github.com/google/oss-fuzz/pull/2928
2019-10-09 20:26:57 +02:00
Stefan Profanter 30740b06db fix(ci): Avoid asan complaining on misaligned memory 2019-10-09 20:26:57 +02:00
Julius Pfrommer 6c777640e6 refactor(core): Replace UA_Connection_deleteMembers with UA_Connection_clear 2019-10-03 15:14:24 +02:00
escherstair 3ec05f522d %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int' 2019-09-03 15:45:47 +02:00
escherstair 74b03a8309 Buffer is accessed out of bounds: fileName 2019-09-03 15:45:47 +02:00
Julius Pfrommer fb4a98f655 JSON: Switch to another base64 implementation after oss-fuzz problems 2019-08-31 09:02:39 +02:00
Stefan Profanter 6fe8453249 Untabify
Used command:
`find . \( -name '*.c' -o -name '*.h' \) -not \( -path "./deps/*" -prune \) ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;`
2019-05-25 09:09:46 +02:00
Stefan Profanter e9a9f576b7 Fuzz: Enable mDNS testing and broadcast 2019-05-19 10:38:12 +02:00
Stefan Profanter 1f932c6eaf Tests: Correctly lock custom memory manager 2019-05-17 10:23:35 +02:00
Stefan Profanter cb345cdda5 Fuzzer: Remove some debug output 2019-05-10 19:05:48 +02:00
Stefan Profanter d419a00a6b Stack: Add additional config flag to enable mDNS and fix UaExpert not showing LDS Server 2019-05-06 18:05:09 +02:00
Stefan Profanter 58a2fdb5b1 Fuzz: Remove unsupported assert calls 2019-05-06 14:55:48 +02:00
Stefan Profanter a798be865b Fuzz: Add check_build script to verify successful build 2019-05-06 14:55:48 +02:00
Stefan Profanter dee5006b3d Fuzzer: Correct include for json fuzz
Fixes #2671
2019-05-02 14:04:44 +02:00
Julius Pfrommer 4ff617ffed Fuzz: Fix a warning for snprintf overrun 2019-04-23 00:41:32 +02:00
Julius Pfrommer 79c063752e Fuzz: Fix a casting warning 2019-04-23 00:41:32 +02:00
Julius Pfrommer fd08d012d9 Server: Initialize the config in the server 2019-04-23 00:41:32 +02:00
Stefan Profanter f19a6a1839 Stack: Correct include for architecture related headers
Fixes #2646
2019-04-18 08:01:45 +02:00
Stefan Profanter ecee9f241e CMake: Correct installation if public headers 2019-03-21 20:16:31 +01:00
Stefan Profanter 63f3653ff1 Additional header cleanup and consistent name of ns generated files 2019-03-21 20:16:31 +01:00
Julius Pfrommer c9c818868f Move header files to a more unix-like structure
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
2019-03-21 20:16:31 +01:00
Julius Pfrommer 989a081a34 SecurityPolicy: Pull out common code to a separate compilation unit 2019-03-18 16:37:20 +01:00
Silvio Traversaro e62c2a432b Properly use target_include_directories to propagate include directories 2019-02-26 19:08:05 +01:00
Julius Pfrommer bcaa6695c0 Client: Store SecurityPolicies in the client config; Refactor connection logic 2019-01-30 18:45:42 +01:00
Frank Meerkoetter 5bc2cfce90 Do not dynamically allocate a simple bool
Giving this variable a static life time is much simpler.
2019-01-07 08:01:35 +01:00
Lukas M 887ebf842c JSON: Add encoding/decoding fuzzing 2019-01-03 00:05:00 +01:00
Stefan Profanter aa3c4be4ba Doc: Fix various Codacy formatting issues 2019-01-02 15:48:34 +01:00
Mark Giraud 20eccdcaf1 Move plugins to directories for better organisation 2018-12-19 13:09:18 +01:00
Stefan Profanter d715db1057 Stack: Use non-amalgamated headers in all the examples
For consistency we recommend using non-amalgamation install, thus the
examples should also use the non-amalgamated headers.
2018-12-17 22:40:07 +01:00