Fix segfault when target for a push is smaller than the smallest extension
Change-Id: Ifbfb89828030f72b05f919265c4dc57f1ed32325
This commit is contained in:
		
							parent
							
								
									41039483d3
								
							
						
					
					
						commit
						a84e1ef4b4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -859,7 +859,7 @@ pid_t Util::startPush(const std::string &streamname, std::string &target, int de
 | 
				
			||||||
          MEDIUM_MSG("Checking output %s: %s (%s)", outputs.getIndiceName(i).c_str(),
 | 
					          MEDIUM_MSG("Checking output %s: %s (%s)", outputs.getIndiceName(i).c_str(),
 | 
				
			||||||
                     output.getMember("name").asString().c_str(), checkTarget.c_str());
 | 
					                     output.getMember("name").asString().c_str(), checkTarget.c_str());
 | 
				
			||||||
          if (checkTarget.substr(0, front.size()) == front &&
 | 
					          if (checkTarget.substr(0, front.size()) == front &&
 | 
				
			||||||
              checkTarget.substr(checkTarget.size() - back.size()) == back){
 | 
					              checkTarget.size() >= back.size() && checkTarget.substr(checkTarget.size() - back.size()) == back){
 | 
				
			||||||
            output_bin = Util::getMyPath() + "MistOut" + output.getMember("name").asString();
 | 
					            output_bin = Util::getMyPath() + "MistOut" + output.getMember("name").asString();
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue