~alan-griffiths/mir/fix-1475994-g++-5-backport-to-0.13

  • Committer: Alberto Aguirre
  • Date: 2015-06-17 19:11:14 UTC
  • Revision ID: alberto.aguirre@canonical.com-20150617191114-2cfjhluzzsjv0oeh
Avoid allocating mir::protobuf objects on the stack

When an addition is made to a protobuf message, a stack allocation of such object may differ from what the destructor of that message is expecting as the destructor is defined by libmirprotobuf and the allocation may have been made from an older definition of the message (by an older mirclient library for example) which can lead to stack corruption.

Ideally, the mirprotobuf library would have versioned symbols and have the ability to be loaded in parallel to a previous version but that's not currently possible.

As an alternative, avoid allocating mir defined protobuf objects on the stack and instead use the xxx::default_instance().New() factory methods which are defined in the mirprotobuf library.

Backport of lp:mir r2674
Filename Latest Rev Last Changed Committer Comment Size
..
abi_compatibility_tools.md 1951.1.2 9 years ago Alexandros Frantzis doc: Add documentation for our ABI build targets 3.2 KB Diff Download File
android_new_device_bringup.md 2094.4.24 9 years ago Daniel van Vugt Merge latest trunk. 6.1 KB Diff Download File
android_technical_details.md 2094.4.24 9 years ago Daniel van Vugt Merge latest trunk. 1.8 KB Diff Download File
avoid_deploy-and-test.md 2245.3.1 9 years ago Daniel van Vugt Document how to avoid deploy-and-test.sh 975 bytes Diff Download File
building_source_for_arm.md 2094.4.24 9 years ago Daniel van Vugt Merge latest trunk. 3.2 KB Diff Download File
building_source_for_pc.md 806.7.14 10 years ago Daniel van Vugt Merge latest lp:mir 3.4 KB Diff Download File
component_reports.md 2426.2.7 9 years ago Daniel van Vugt Merge latest trunk and fix conflicts. 3 KB Diff Download File
debug_for_xmir.md 1063.12.1 10 years ago Robert Carr Reapply DPMS patch 3.9 KB Diff Download File
demo_server_controls.md 2202.2.41 9 years ago Alan Griffiths Alt-middle_button drag to resize 2 KB Diff Download File
demo_shell_controls.md 2487.1.9 9 years ago Daniel van Vugt Update docs too 1.8 KB Diff Download File
Doxyfile.in 2094.4.24 9 years ago Daniel van Vugt Merge latest trunk. 80.7 KB Diff Download File
dso_versioning_guide.md 2426.2.7 9 years ago Daniel van Vugt Merge latest trunk and fix conflicts. 8 KB Diff Download File
extra.css 798.1.3 10 years ago Alan Griffiths Default to Ubuntu font 697 bytes Diff Download File
footer.html.in 2527.1.2 9 years ago Alan Griffiths Fix footer copyright 118 bytes Diff Download File
installing_prebuilt_on_android.md 2426.2.7 9 years ago Daniel van Vugt Merge latest trunk and fix conflicts. 718 bytes Diff Download File
installing_prebuilt_on_pc.md 1441.4.13 10 years ago Daniel van Vugt Merge latest development-branch 497 bytes Diff Download File
kernel_requirements.md 2477.1.2 9 years ago Daniel van Vugt Fix typo etc 471 bytes Diff Download File
mainpage.md 2527.1.1 9 years ago Alan Griffiths Fixup example references in generated docs 3.9 KB Diff Download File
setup_kvm_for_mir.md 2479.1.1 9 years ago Andreas Pokorny update to current situation in vivid 1.9 KB Diff Download File
setup_vmware_for_mir.md 2319.1.2 9 years ago Alexandros Frantzis doc: Fix typo 1.9 KB Diff Download File
snappy_appliances.md 2402.5.25 9 years ago Daniel van Vugt More documentation 2.3 KB Diff Download File
using_mir_on_android.md 2426.2.7 9 years ago Daniel van Vugt Merge latest trunk and fix conflicts. 818 bytes Diff Download File
using_mir_on_pc.md 2094.4.24 9 years ago Daniel van Vugt Merge latest trunk. 4.1 KB Diff Download File