Coverage Report

Created: 2026-09-03 07:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/FreeRDP/libfreerdp/utils/test/TestFuzzSmartcardOperations.c
Line
Count
Source
1
#include <winpr/stream.h>
2
#include <freerdp/channels/scard.h>
3
#include <freerdp/utils/smartcard_operations.h>
4
5
int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size)
6
0
{
7
0
  SMARTCARD_OPERATION operation = WINPR_C_ARRAY_INIT;
8
0
  wStream sbuffer = WINPR_C_ARRAY_INIT;
9
10
0
  wStream* s = Stream_StaticConstInit(&sbuffer, Data, Size);
11
0
  if (!s)
12
0
    return 0;
13
14
  /* Decodes the Device Control Request header, then dispatches on the
15
   * IoControlCode into the matching smartcard_unpack_*_call(). */
16
0
  (void)smartcard_irp_device_control_decode_request(s, 1, 0, &operation);
17
0
  smartcard_operation_free(&operation, FALSE);
18
19
0
  return 0;
20
0
}