fixed minor bug in IcecCast2.cpp, which could have lead to a buffer
overflow
This commit is contained in:
		
							parent
							
								
									5050a42c5c
								
							
						
					
					
						commit
						97d4081499
					
				| 
						 | 
					@ -14,4 +14,5 @@ with contributions by:
 | 
				
			||||||
    Kristjan G. Bjarnason <kgb@gangverk.is>
 | 
					    Kristjan G. Bjarnason <kgb@gangverk.is>
 | 
				
			||||||
    Nicu Pavel <npavel@ituner.com>
 | 
					    Nicu Pavel <npavel@ituner.com>
 | 
				
			||||||
    Kai Krakow <kai@kaishome.de>
 | 
					    Kai Krakow <kai@kaishome.de>
 | 
				
			||||||
 | 
					    Atsuhiko Yamanaka <ymnk@jcraft.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,7 @@
 | 
				
			||||||
DarkIce next version:
 | 
					DarkIce next version:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    o bugfix: fixed minor bug in IcecCast2.cpp, which could have lead to
 | 
				
			||||||
 | 
					      a buffer overflow. thanks to Atsuhiko Yamanaka <ymnk@jcraft.com>
 | 
				
			||||||
    o bugfix: MultiThreadedConnector::sinkThread() was private, now public
 | 
					    o bugfix: MultiThreadedConnector::sinkThread() was private, now public
 | 
				
			||||||
    o added fileAddDate configuration option
 | 
					    o added fileAddDate configuration option
 | 
				
			||||||
      thanks to Nicu Pavel <npavel@ituner.com>
 | 
					      thanks to Nicu Pavel <npavel@ituner.com>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -171,7 +171,7 @@ IceCast2 :: sendLogin ( void )                           throw ( Exception )
 | 
				
			||||||
        char        * source = "source:";
 | 
					        char        * source = "source:";
 | 
				
			||||||
        const char  * pwd    = getPassword();
 | 
					        const char  * pwd    = getPassword();
 | 
				
			||||||
        char        * tmp    = new char[Util::strLen(source) +
 | 
					        char        * tmp    = new char[Util::strLen(source) +
 | 
				
			||||||
                                        Util::strLen(str) + 1];
 | 
					                                        Util::strLen(pwd) + 1];
 | 
				
			||||||
        Util::strCpy( tmp, source);
 | 
					        Util::strCpy( tmp, source);
 | 
				
			||||||
        Util::strCat( tmp, pwd);
 | 
					        Util::strCat( tmp, pwd);
 | 
				
			||||||
        char  * base64 = Util::base64Encode( tmp);
 | 
					        char  * base64 = Util::base64Encode( tmp);
 | 
				
			||||||
| 
						 | 
					@ -255,6 +255,10 @@ IceCast2 :: sendLogin ( void )                           throw ( Exception )
 | 
				
			||||||
  $Source$
 | 
					  $Source$
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $Log$
 | 
					  $Log$
 | 
				
			||||||
 | 
					  Revision 1.10  2002/11/29 08:14:47  darkeye
 | 
				
			||||||
 | 
					  fixed minor bug in IcecCast2.cpp, which could have lead to a buffer
 | 
				
			||||||
 | 
					  overflow
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Revision 1.9  2002/10/20 21:09:35  darkeye
 | 
					  Revision 1.9  2002/10/20 21:09:35  darkeye
 | 
				
			||||||
  added processing of server response
 | 
					  added processing of server response
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue