Opened 3 months ago

Last modified 8 weeks ago

#27805 new defect

Update CodingStandardsRust.md with allocate_and_copy_string()

Reported by: teor Owned by:
Priority: Medium Milestone: Tor: 0.3.5.x-final
Component: Core Tor/Tor Version: Tor: 0.3.3.1-alpha
Severity: Normal Keywords: rust, protover, memory-safety, fast-fix
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

We have allocate_and_copy_string() in Rust, which uses tor_malloc():
https://github.com/torproject/tor/blob/master/src/rust/tor_allocate/tor_allocate.rs#L30

We need to update our rust coding standards to mention allocate_and_copy_string():
https://gitweb.torproject.org/tor.git/tree/doc/HACKING/CodingStandardsRust.md#n374

Child Tickets

Change History (2)

comment:1 Changed 3 months ago by nickm

Keywords: 035-must 033-backport 034-backport removed

This is important and worth doing, but is not strictly-speaking 035-must

comment:2 Changed 8 weeks ago by nickm

Parent ID: #27740
Note: See TracTickets for help on using tickets.