Fix: unchecked buffer size for communication header
[lttng-tools.git] / src / common / payload-view.h
index 47c2c8c917d29e33e6956818ff0b2f31de9db1aa..9aa15f45620e0b42a8d5525d9f48ff86de6462cc 100644 (file)
@@ -53,6 +53,16 @@ struct lttng_payload_view {
        } _iterator;
 };
 
        } _iterator;
 };
 
+/**
+ * Checks if a payload view's buffer is safe to access.
+ *
+ * After calling the payload view creation functions, callers should verify
+ * if the resquested length (if any is explicitly provided) could be mapped
+ * to a new view.
+ */
+LTTNG_HIDDEN
+bool lttng_payload_view_is_valid(const struct lttng_payload_view *view);
+
 /**
  * Return a payload view referencing a subset of a payload.
  *
 /**
  * Return a payload view referencing a subset of a payload.
  *
This page took 0.022648 seconds and 4 git commands to generate.