Subj : Re: mbse 1.0.7.9
To : Andrew Leary
From : Deon George
Date : Mon Oct 01 2018 02:53 pm
Hey Andrew,
VC> 1. Removed the requirement that incoming .TIC files have
VC> exactly 8 character filenames with the .TIC extension.
I've just noticed that I received some realy_long_filenames from an upstream,
and because I didnt have the file area defined - mbfido wanted to toss them
into the badtic dir, but couldnt because it had truncated the filename to the
first 12 chars.
? 02-Oct-2018 00:38:30 mbfido[6490] Failed to move
/opt/mbse/data/inbound/1-5_lxk1-en- to /opt/mbse/data/badtic/1-5_lxk1-en-: No
such file or directory
The filename was 1-5_lxk1-en-manual.tic
Issue seems to be around line 230 of mbfido/tic.c
strncpy(TIC.TicName, tfn, 12);
But there also seems to be other cases where strncpy is used to populate a
variable with only 12 chars... (line 376 and 498 - first one might be valid,
but not sure about the second one...