Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
### Description:
I spot a potential buffer overflow in command_line_parsing() function in broacaster.c:
https://github.com/gpac/gpac/blob/master/applications/testapps/broadcaster/broadcaster.c

### Details
```
static int command_line_parsing(int argc, const char** argv, unsigned short * tcp_port,
                                char *config_file, int *config_flag, unsigned short * mtu_size,
                                int * debug, u32 * socketType_for_updates)
{
	int counter = 1;
	if (argc < 2 || argc%2 != 1) {
		fprintf(stderr, "Incorrect number of arguments, must be multiple of 2 (Please specify at least -f or -p arguments) !\n");
		return -5;
	}

	for(counter = 1; counter < (argc - 1); counter+=2)
	{
		const char * a = argv[counter];
		if (!strcmp("-p", a) || !strcmp("--port", a))
		{
			if (*config_flag)
			{
				printIncompatibleOptions();
				return -2;
			}
			(*tcp_port) = port_from_string( argv[counter + 1] );
			if (!(*tcp_port)) return -3;
		}
		else if (!strcmp("-f", a) || !strcmp("--file", a))
		{
			if (*tcp_port) {
				printIncompatibleOptions();
				return -2;
			}
			strcpy(config_file, argv[counter+1]); // Buffer overflow VULN
			(*config_flag) = 1;
		}
```

The function didn't check the length of **argv[counter+1]** and just copy into the **config_file** leading to buffer overflow.
### POC
I haven't reproduce this vulnerability.

### Impact
This vulnerability could lead to denial of service.
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://gpac.io/downloads/gpac-nightly-builds/
- [ ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: https://gpac.io/bug-reporting/

Buffer overflow in broadcaster module
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Buffer overflow in broadcaster module
Issue date:

--- start body ---
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
### Description:
I spot a potential buffer overflow in command_line_parsing() function in broacaster.c:
https://github.com/gpac/gpac/blob/master/applications/testapps/broadcaster/broadcaster.c

### Details
```
static int command_line_parsing(int argc, const char** argv, unsigned short * tcp_port,
                                char *config_file, int *config_flag, unsigned short * mtu_size,
                                int * debug, u32 * socketType_for_updates)
{
	int counter = 1;
	if (argc < 2 || argc%2 != 1) {
		fprintf(stderr, "Incorrect number of arguments, must be multiple of 2 (Please specify at least -f or -p arguments) !\n");
		return -5;
	}

	for(counter = 1; counter < (argc - 1); counter+=2)
	{
		const char * a = argv[counter];
		if (!strcmp("-p", a) || !strcmp("--port", a))
		{
			if (*config_flag)
			{
				printIncompatibleOptions();
				return -2;
			}
			(*tcp_port) = port_from_string( argv[counter + 1] );
			if (!(*tcp_port)) return -3;
		}
		else if (!strcmp("-f", a) || !strcmp("--file", a))
		{
			if (*tcp_port) {
				printIncompatibleOptions();
				return -2;
			}
			strcpy(config_file, argv[counter+1]); // Buffer overflow VULN
			(*config_flag) = 1;
		}
```

The function didn't check the length of **argv[counter+1]** and just copy into the **config_file** leading to buffer overflow.
### POC
I haven't reproduce this vulnerability.

### Impact
This vulnerability could lead to denial of service.
- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at https://gpac.io/downloads/gpac-nightly-builds/
- [ ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: https://gpac.io/bug-reporting/

--- end body ---
