Fixed an infinite loop in "Transcoder::encode" (#34)

Fixed an infinite loop in "Transcoder::encode(const LogString&, std::wstring&)" by appending LOSSCHAR. The most likely alternative would be to throw on any invalid input instead, but that's not the case right now and LOSSCHAR used in other places as well.

https://issues.apache.org/jira/browse/LOGCXX-398

Co-authored-by: Robert Middleton <robert.middleton@rm5248.com>
3 files changed
tree: 141fffbab1ca502d76e6ca7bd7a42c9bdf3da81b
  1. .astylerc
  2. .editorconfig
  3. .gitignore
  4. CMakeLists.txt
  5. INSTALL
  6. KEYS
  7. LICENSE
  8. Makefile.am
  9. NOTICE
  10. README.md
  11. autogen.sh
  12. build.xml
  13. configure.ac
  14. configure.bat
  15. doap_log4cxx.rdf
  16. liblog4cxx.pc.in
  17. pom.xml
  18. release_perform.sh
  19. release_prepare.sh
  20. release_purge.sh
  21. src/
README.md

Issues and pull requests

Issues are maintained in the Apache JIRA by default, so before posting pull requests, please have a look there if an associated issue with your problem/feature/... exists already. If not, it‘s generally OK to directly create pull requests IF code is already available, but please be somewhat verbose: Provide some background information about what actual problem the PR solves, why this needs to be solved etc. Don’t just provide commits about the fact that you changed something.

If any discussion is needed before actually having any code, simply create a ticket in JIRA or send a message to the corresponding mailing list. Thanks!