fanyang
fanyang
The default encoding in Go is UTF-8. However, when `cmd.exe` is run on non-Latin Windows systems, it may use an encoding other than UTF-8, which can lead to garbled text....
format_endpoint_info() is widely called in the IO thread. And the some ZOOAPIs will call this method too: zoo_cycle_next_server() and zoo_get_current_server(). These APIs return the same static buffer read/write by IO...
When a new txn log is created, it encounters a failure before writing to the file header. The txn log file is empty at this moment, the server starts up...
The log callback needs to be obtained from freed zh when the log level is debug, resulting in used-after-free.
When the user calls ZOOAPI zoo_set_servers() and free zh->hostname, resulting in use-after-free in zookeeper_interest().