From ddd9e8c3fbe2724c2b5777939ddf82fd4118da6c Mon Sep 17 00:00:00 2001 From: Steve Franke Date: Fri, 21 Dec 2018 16:56:38 -0600 Subject: [PATCH] wsprd: more rigorous quality checking of OSD-produced decodes. For now, discard all OSD decodes that map to an extended callsign. --- lib/wsprd/wsprd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wsprd/wsprd.c b/lib/wsprd/wsprd.c index 2e4c3c232..b94b10d8e 100644 --- a/lib/wsprd/wsprd.c +++ b/lib/wsprd/wsprd.c @@ -1312,7 +1312,9 @@ int main(int argc, char *argv[]) if( !unpackcall(n1,callsign) ) break; callsign[12]=0; ihash=nhash(callsign,strlen(callsign),(uint32_t)146); - if(strncmp(hashtab+ihash*13,callsign,13)==0) { + int ntype = (n2&127) - 64; + if(strncmp(hashtab+ihash*13,callsign,13)==0 + && (ntype >= 0) && (ntype <= 62) ) { not_decoded=0; osd_decode =1; break;