diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-01 11:26:11 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-03-01 11:26:11 +0100 |
commit | 715705de018f815b3695af983c8d6623ba73a9ae (patch) | |
tree | 638fcb5eb91a16e331026b308802d2f7be148db7 /src/ConfigParser.cpp | |
parent | ce26420aee83466cb54bcf07283a8e43af9f775f (diff) | |
download | dabmux-715705de018f815b3695af983c8d6623ba73a9ae.tar.gz dabmux-715705de018f815b3695af983c8d6623ba73a9ae.tar.bz2 dabmux-715705de018f815b3695af983c8d6623ba73a9ae.zip |
Fix length of FI freq list check
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r-- | src/ConfigParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index b48df8c..efcafbd 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -244,7 +244,7 @@ static void parse_freq_info(ptree& pt, } fle.fi_dab.frequencies.push_back(el); } - if (fle.fi_dab.frequencies.size() > 7) { + if (fle.fi_dab.frequencies.size() > 2) { throw runtime_error("Too many frequency entries in FI " + fle.uid); } } break; @@ -270,7 +270,7 @@ static void parse_freq_info(ptree& pt, for (std::string freq; std::getline(frequencies_ss, freq, ' '); ) { fle.fi_drm.frequencies.push_back(std::stof(freq)); } - if (fle.fi_drm.frequencies.size() > 7) { + if (fle.fi_drm.frequencies.size() > 3) { throw runtime_error("Too many frequency entries in FI " + fle.uid); } } break; @@ -283,7 +283,7 @@ static void parse_freq_info(ptree& pt, for (std::string freq; std::getline(frequencies_ss, freq, ' '); ) { fle.fi_amss.frequencies.push_back(std::stof(freq)); } - if (fle.fi_amss.frequencies.size() > 7) { + if (fle.fi_amss.frequencies.size() > 3) { throw runtime_error("Too many frequency entries in FI " + fle.uid); } } break; |